[Bug 8004] New: suggestion code can't pass validate

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

           Summary: suggestion code can't pass validate
           Product: Validator
           Version: 0.8.5
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: trivial
          Priority: P5
         Component: Templates
        AssignedTo: dave.null@w3.org
        ReportedBy: Siramizu@gmail.com
         QAContact: www-validator-cvs@w3.org


I tried to valid a quite simple document such as
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html>
        <head>
                <meta http-equiv="Content-Type" content="text/html;
charset=utf-8" />
                <title>Demo</title>
        </head>
        <body>
                <h1>Demo</h1>
        </body>
</html>

I got 1 Error and tell me Missing xmlns attribute for element html. The value
should be: http://www.w3.org/1999/xhtml

and a prompt like this:
Many Document Types based on XML need a mandatory xmlns="" on the root element.
For example, the root element for XHTML will look like:
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">

so I use <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
insted <html> then I got Attribute "lang" exists, but can not be used for this
element.

¡­ns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">

so then what I should write? with lang or without lang?


-- 
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 Thursday, 22 October 2009 12:04:40 UTC