This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 223 - Returns false error message
Summary: Returns false error message
Status: RESOLVED INVALID
Alias: None
Product: Validator
Classification: Unclassified
Component: Parser (show other bugs)
Version: 0.6.2
Hardware: All All
: P2 normal
Target Milestone: ---
Assignee: Terje Bless
QA Contact:
URL: http://www.intergraphics-decal.com/su...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-06-11 12:42 UTC by John Brunelle
Modified: 2003-06-16 13:30 UTC (History)
1 user (show)

See Also:


Attachments

Description John Brunelle 2003-06-11 12:42:08 UTC
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.
Comment 1 Ville Skyttä 2003-06-15 17:54:45 UTC
You should replace the "<" with "&lt;".

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)
      ^
Comment 2 Terje Bless 2003-06-15 18:20:27 UTC
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.
Comment 3 John Brunelle 2003-06-16 09:30:59 UTC
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??