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 3060 - XHTML Parser misinterprets code
Summary: XHTML Parser misinterprets code
Alias: None
Product: Validator
Classification: Unclassified
Component: Parser (show other bugs)
Version: HEAD
Hardware: PC Windows 2000
: P2 normal
Target Milestone: ---
Assignee: Terje Bless
QA Contact: qa-dev tracking
Depends on:
Reported: 2006-03-30 07:04 UTC by Ken Cox
Modified: 2006-03-30 07:13 UTC (History)
0 users

See Also:


Description Ken Cox 2006-03-30 07:04:08 UTC
The validator reports a bogus XHTML error because it is incorrectly parsing the original markup.

Validate and you see an error report for the line:

Error Line 568, column 199: there is no attribute "border" . 
...f=1','_blank');return false;" border="0" />

However, if you look at the actual code, border="0" does not exist!

Here's the real HTML output from the site:

f=1','_blank');return false;" style="border-width:0px;" />

It looks like the parser is misinterpreting the original code and therefore reporting a bogus error.
Comment 1 Bj 2006-03-30 07:13:58 UTC
I am not sure what you are looking at, please use the Validator's show source option and jump to the line in the source using the linkin the error message,
I get

<input type="image" name="ctl00$imgbtnpf" id="ctl00_imgbtnpf" src="images/printfriendly.gif" onclick="'/Default.aspx?pf=1','_blank');return false;" border="0" />

not the code you are talking about. The server might be trying to recognize
the client and emit code depending on that, so the Validator might not get
the code you can see in browser when visiting the site.