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
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:
Depends on:
Reported: 2003-06-11 12:42 UTC by John Brunelle
Modified: 2003-06-16 13:30 UTC (History)
1 user (show)

See Also:


Description John Brunelle 2003-06-11 12:42:08 UTC
when validating XML on the above url the inline javascript code


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':

Terje, shouldn't this be flagged as an error instead of a warning?  xmllint says: error: xmlParseStartTag:
invalid element name
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

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??