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 6995 - XHTML1.1 xmlns missing output provides erroneous fix
Summary: XHTML1.1 xmlns missing output provides erroneous fix
Status: RESOLVED FIXED
Alias: None
Product: Validator
Classification: Unclassified
Component: check (show other bugs)
Version: HEAD
Hardware: Other Linux
: P2 normal
Target Milestone: 0.8.6
Assignee: This bug has no owner yet - up for the taking
QA Contact: qa-dev tracking
URL:
Whiteboard:
Keywords:
: 8004 (view as bug list)
Depends on:
Blocks:
 
Reported: 2009-06-03 22:50 UTC by Matthew Millar
Modified: 2009-10-23 12:45 UTC (History)
1 user (show)

See Also:


Attachments
html source which reproduces "Missing xmlns attribute" error (168 bytes, text/html)
2009-06-03 22:50 UTC, Matthew Millar
Details
html source which reproduces "Attribute "lang" exists" error (229 bytes, text/html)
2009-06-03 22:54 UTC, Matthew Millar
Details

Description Matthew Millar 2009-06-03 22:50:53 UTC
Created attachment 705 [details]
html source which reproduces "Missing xmlns attribute" error

Hi,

The Validator Error Output for "Missing xmlns attribute for element html" for XHTML 1.1 recommends replacing the <html> tag with <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">.

However, once this is re-validated, the new html string is reported as erroneous with the following error:

Attribute "lang" exists, but can not be used for this element

The Validator is recommending the replacement string, in a document whose DTD restricts the use of the lang attribute.
Comment 1 Matthew Millar 2009-06-03 22:54:09 UTC
Created attachment 706 [details]
html source which reproduces "Attribute "lang" exists" error
Comment 2 Matthew Millar 2009-06-03 22:55:31 UTC
Comment on attachment 706 [details]
html source which reproduces "Attribute "lang" exists" error

html source after recommended <html> ammendment.
Comment 3 Ville Skyttä 2009-06-04 15:48:56 UTC
Thanks for the catch.  Fixed in CVS by removing the *lang attributes altogether, they're unrelated in the context of this error anyway.
http://www.w3.org/mid/E1MCF80-0005lx-UR%40lionel-hutz.w3.org
Comment 4 Ville Skyttä 2009-10-23 12:45:53 UTC
*** Bug 8004 has been marked as a duplicate of this bug. ***