Google search script validation.
-
Saturday, September 18, 2010 3:37 AM
Any idea how to get rid of the validation error in this script..Thank you. It does not show as an error in EW1. Line 2 the a in search is highlighted.
sacramentodogcouncil.com
I have tried to figure this out but with no success.
Validation Output: 1 Error
Line 153, Column 93: reference not terminated by REFC delimiter
…c="http://www.google.com/cse/brand?form=cse-search-box&lang=en"></script><br />If you meant to include an entity that starts with "&", then you should terminate it with ";". Another reason for this error message is that you inadvertently created an entity by failing to escape an "&" character just before this text.
Line 153, Column 80: EntityRef: expecting ';'
…c="http://www.google.com/cse/brand?form=cse-search-box&lang=en"></script><br />
Shoot for the moon. There's always the stars if you miss.
All Replies
-
Saturday, September 18, 2010 7:35 AM
Change
http://www.google.com/cse/brand?form=cse-search-box&lang=ento
http://www.google.com/cse/brand?form=cse-search-box&lang=en
The character "&" is regarded as the start of an HTML entity, which is terminated by a semi-colon - in the original snippet the entity is started, but never terminated.
A badly written script may throw an error if & is relaced by & - if this is the case then you may have to revert to the erroneous code, and ignore the error message
Ron Symonds
Microsoft MVP (Expression Web)
www.rxs-enterprises.org/fp- Marked As Answer by Sac. Jack Saturday, September 18, 2010 1:55 PM
-
Saturday, September 18, 2010 1:57 PM
Thanks Ron. That took care of the error reporting in the validator.
Have a good day.
Shoot for the moon. There's always the stars if you miss.

