<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://www.w3.org/Bugs/Public/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4"
          urlbase="https://www.w3.org/Bugs/Public/"
          
          maintainer="sysbot+bugzilla@w3.org"
>

    <bug>
          <bug_id>9967</bug_id>
          
          <creation_ts>2010-06-21 04:21:10 +0000</creation_ts>
          <short_desc>don&apos;t switch to XHTML5 checking on HTML5 direct input that has xmlns=&quot;http://www.w3.org/1999/xhtml&quot;</short_desc>
          <delta_ts>2015-08-23 07:07:00 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>HTML Checker</product>
          <component>General</component>
          <version>unspecified</version>
          <rep_platform>PC</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Michael[tm] Smith">mike</reporter>
          <assigned_to name="Ville Skyttä">ville.skytta</assigned_to>
          <cc>chealer</cc>
    
    <cc>sergest</cc>
    
    <cc>vincent1984</cc>
          
          <qa_contact name="qa-dev tracking">www-validator-cvs</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>36288</commentid>
    <comment_count>0</comment_count>
    <who name="Michael[tm] Smith">mike</who>
    <bug_when>2010-06-21 04:21:10 +0000</bug_when>
    <thetext>Steps to reproduce:

1. Enter the following as direct input:

&lt;!DOCTYPE html&gt;
&lt;html xmlns=&quot;http://www.w3.org/1999/xhtml&quot;&gt;
&lt;title&gt;&lt;/title&gt;

You&apos;ll notice that you get two errors:

  - Line 3, Column 7: XHTML element title not allowed as child of XHTML element html in this context. (Suppressing further errors from this subtree.)

  - Line 3, Column 16: premature end of file (found [EOF])
 
You should instead get no errors. The direct input should by default just be treated as text/html instead, not XHTML. The &apos;xmlns=&quot;http://www.w3.org/1999/xhtml&quot;&apos; part is not necessarily any indication that the author intends for it to be processed as XHTML.

For details, see:

http://dev.w3.org/html5/spec/elements.html#global-attributes
[[
In HTML documents, elements in the HTML namespace may have an xmlns attribute specified, if, and only if, it has the exact value &quot;http://www.w3.org/1999/xhtml&quot;. This does not apply to XML documents.

In HTML, the xmlns attribute has absolutely no effect. It is basically a talisman. It is allowed merely to make migration to and from XHTML mildly easier. When parsed by an HTML parser, the attribute ends up in no namespace, not the &quot;http://www.w3.org/2000/xmlns/&quot; namespace like namespace declaration attributes in XML do.
]]</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>55740</commentid>
    <comment_count>1</comment_count>
    <who name="Ville Skyttä">ville.skytta</who>
    <bug_when>2011-08-23 21:53:04 +0000</bug_when>
    <thetext>Done in Mercurial, testable at http://qa-dev.w3.org/wmvs/HEAD/</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>56605</commentid>
    <comment_count>2</comment_count>
    <who name="Filipus Klutiero">chealer</who>
    <bug_when>2011-09-10 14:56:56 +0000</bug_when>
    <thetext>Here is another way in which this manifests.

&lt;!DOCTYPE html&gt; &lt;html xmlns=&quot;http://www.w3.org/1999/xhtml&quot;&gt; &lt;head&gt; &lt;meta http-equiv=&quot;Content-Type&quot; content=&quot;text/html; charset=utf-8&quot; /&gt;
&lt;title&gt;                        HomePage &lt;/title&gt;
&lt;/head&gt;
&lt;body&gt; &lt;/body&gt;
&lt;/html&gt;

The above, which is clearly in &quot;HTML HTML syntax&quot;, is also interpreted as XHTML, and most confusingly, the validator whines it&apos;s not valid XHTML on the declaration that it is in &quot;HTML HTML syntax&quot;:

&quot;Bad value Content-Type for attribute http-equiv on XHTML element meta&quot;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>65523</commentid>
    <comment_count>3</comment_count>
    <who name="Sergei Shoshin">sergest</who>
    <bug_when>2012-03-14 16:44:34 +0000</bug_when>
    <thetext>so is there now any option to validate xhtml5 code via direct input?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>65797</commentid>
    <comment_count>4</comment_count>
    <who name="Michael[tm] Smith">mike</who>
    <bug_when>2012-03-20 04:41:38 +0000</bug_when>
    <thetext>(In reply to comment #3)
&gt; so is there now any option to validate xhtml5 code via direct input?

The option is to use http://validator.w3.org/nu/ instead.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>