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 4991 - Validation fails on URL input, passes on direct input
Summary: Validation fails on URL input, passes on direct input
Status: RESOLVED INVALID
Alias: None
Product: Validator
Classification: Unclassified
Component: Parser (show other bugs)
Version: HEAD
Hardware: PC Windows XP
: P2 normal
Target Milestone: ---
Assignee: This bug has no owner yet - up for the taking
QA Contact: qa-dev tracking
URL: http://www.roberthenrylowe.com
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-08-29 03:48 UTC by Rob Lowe
Modified: 2007-08-29 17:48 UTC (History)
0 users

See Also:


Attachments

Description Rob Lowe 2007-08-29 03:48:26 UTC
When I try to validate my site via URL input, it fails. When I view the generated source and copy/paste that into direct input, I pass validation. I am pretty sure it should pass because it says I require tags that *are* there and

<div>
<ul>
<li>something</li>
<li>something</li>
<li>something</li>
</ul>
<div>

that is valid xhtml strict, isn't it?
Comment 1 Olivier Thereaux 2007-08-29 07:57:03 UTC
I get the exact same errors when validating by URI and when copy-pasting the source of the page from a browser to the validator.

You may want to use the "show source" option of the validator. The validator is not inventing error for the sake of it

Comment 2 Rob Lowe 2007-08-29 16:11:30 UTC
There shouldn't be any errors when validating the URI, the errors it throw back are not there. Look at the source code on the actual site versus the errors the validator sends back, the errors aren't there
Comment 3 Olivier Thereaux 2007-08-29 17:48:46 UTC
(In reply to comment #2)
> There shouldn't be any errors when validating the URI, the errors it throw back
> are not there. Look at the source code on the actual site versus the errors the
> validator sends back, the errors aren't there

First error: the html element is missing the xmlns attribute.
Let's look at the code for your site... it starts with
<html>
=> in XHTML you have to have the xmlns=..." there.
The first error is definitely there

Second error: document type does not allow element "ul" here
I look where the validator is pointing
<span class="terms"><ul class="links inline">
=> you can't have a block-level <ul> in an inline-level <span>
The second error is definitely there, too.

etc.


I'm not sure what your browser is seeing, maybe you are seeing different content and markup because you are logged in or have a different version in cache, but I can assure you that the errors are there, whether seen from a browser or the validator.