This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.
when validating XML on the above url the inline javascript code if(v<1) returns the error message: The content of elements must consist of well-formed character data or markup.
You should replace the "<" with "<". But I can't reproduce your error message with the current validator or the beta, instead they contain a warning 'Line 240, column 5: character "<" is the first character of a delimiter but occurred as data': http://validator.w3.org/check?uri=http%3A%2F%2Fwww.intergraphics-decal.com%2Fsupport%2Ffaq.asp http://validator.w3.org:8001/check?uri=http%3A%2F%2Fwww.intergraphics-decal.com%2Fsupport%2Ffaq.asp Terje, shouldn't this be flagged as an error instead of a warning? xmllint says: http://www.intergraphics-decal.com/support/faq.asp:240: error: xmlParseStartTag: invalid element name if(v<1) ^
Nope. This really is a warning as it can be reliably inferred fro context that the STAGO "<" is used as data in this instance. The warning is there because it is potentially confusing and can easily lead to a situation where it cannot be reliably inferred. (I'm assuming you mislabelled the version as 0.7.0 instead of 0.6.1?) Closing as INVALID. Feel free to reopen the bug if necessary John.
Thanx for your help, will make the change to my code. Just curious as to why the Validator even bothers to examine the code between the <script></script> tags. Don't browsers that don't support javascript (cell phones and pda's etc.) do exactly that??