[Bug 6995] New: XHTML1.1 xmlns missing output provides erroneous fix

http://www.w3.org/Bugs/Public/show_bug.cgi?id=6995

           Summary: XHTML1.1 xmlns missing output provides erroneous fix
           Product: Validator
           Version: HEAD
          Platform: Other
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: check
        AssignedTo: dave.null@w3.org
        ReportedBy: mattmill30@hotmail.com
         QAContact: www-validator-cvs@w3.org


Created an attachment (id=705)
 --> (http://www.w3.org/Bugs/Public/attachment.cgi?id=705)
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.


-- 
Configure bugmail: http://www.w3.org/Bugs/Public/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.

Received on Wednesday, 3 June 2009 22:51:00 UTC