On 18 Oct 2004, at 6:05 AM, Mordechai Peller wrote:
Let me start by saying that I have enough experience with syntax checker
to know that the error message doesn't always point to the right place
and that one error can generate many messages. But that being said, I
think this one takes the cake.
The DOCTYPE was set to XHTML 1.0 STRICT and the page had an image
missing an alt attribute on line 68 so of course it didn't validate. But
instead of just a "Line 68, column 104: required attribute "alt" not
specified," I got eight more errors, five before and three after, all
"reference to non-SGML character." Fix the missing alt error and
everything else validates.
What's going on?
I don't have an answer, but can I add to the question?
I get 'non-SGML character' warnings (NB warnings, not errors) when I use, say, & instead of & to escape an ampersand. Which syntax fpr character entities is correct? Or does it depend on the charset specified in the Content-Type? I understand that & is Unicode, but I always (well, usually) specify iso-8859-1. Is this why I'm getting these warnings? Should I stick to the alpha-based entity descriptions for iso-8859-1?
Thx - N ___________________________ Omnivision. Websight. http://www.omnivision.com.au/
****************************************************** The discussion list for http://webstandardsgroup.org/
See http://webstandardsgroup.org/mail/guidelines.cfm for some hints on posting to the list & getting help ******************************************************
