<?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>3385</bug_id>
          
          <creation_ts>2006-06-23 18:37:06 +0000</creation_ts>
          <short_desc>xmlns in html tag is not mandatory</short_desc>
          <delta_ts>2006-12-19 16:03:10 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>Validator</product>
          <component>Parser</component>
          <version>0.7.3</version>
          <rep_platform>PC</rep_platform>
          <op_sys>Windows XP</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>68</dup_id>
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>notInDTD</keywords>
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>1.0</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Moo">eldmannen</reporter>
          <assigned_to name="Terje Bless">link</assigned_to>
          <cc>martin.kliehm</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>10226</commentid>
    <comment_count>0</comment_count>
    <who name="Moo">eldmannen</who>
    <bug_when>2006-06-23 18:37:06 +0000</bug_when>
    <thetext>I validated a XHTML 1.1 document.
The html tag was a plain tag which looked like this;
 &lt;html&gt;

But as far as I know, the standard does require the xmlns attribute. Yet the validator validates the document as correct XHTML 1.1 even though the mandatory xmlns attribute was not present.

In my browser my document didnt work until I changed it to ths;
 &lt;html xmlns=&quot;http://www.w3.org/1999/xhtml&quot; xml:lang=&quot;en&quot; lang=&quot;en&quot;&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>12686</commentid>
    <comment_count>1</comment_count>
    <who name="Olivier Thereaux">ot</who>
    <bug_when>2006-10-31 07:09:05 +0000</bug_when>
    <thetext>The spec indeed requires a strictly conforming document to have the xmlns attribute for the html element
http://www.w3.org/TR/xhtml11/conformance.html#strict

However, it looks like the DTD (the grammar published with the standard, and used to validate) does not include any such requirement. 

I&apos;ll ask the spec authors whether this was a mistake or if the omission in the DTD was on purpose.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>12837</commentid>
    <comment_count>2</comment_count>
    <who name="Olivier Thereaux">ot</who>
    <bug_when>2006-11-06 00:27:59 +0000</bug_when>
    <thetext>As checked with the HTML working group, the presence of the xmlns attribute for the html element is something that they had in the conformance criteria, but could not enforce through the DTD.

This is not as such an issue of validation, but should be considered as an extra check as we make the validator evolve toward being a conformance checker.

tagged notInDTD</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>12847</commentid>
    <comment_count>3</comment_count>
    <who name="Olivier Thereaux">ot</who>
    <bug_when>2006-11-07 06:37:56 +0000</bug_when>
    <thetext>

*** This bug has been marked as a duplicate of bug 68 ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>13252</commentid>
    <comment_count>4</comment_count>
    <who name="Martin Kliehm">martin.kliehm</who>
    <bug_when>2006-12-19 16:03:10 +0000</bug_when>
    <thetext>In XHTML 1.1, the XHTML namespace is required to be the fixed value &quot;http://www.w3.org/1999/xhtml&quot;, but it is also allowed to expand the namespace:

&lt;html xmlns=&quot;http://www.w3.org/1999/xhtml&quot;
  xmlns:wairole= &quot;http://www.w3.org/2005/01/wai-rdf/ GUIRoleTaxonomy#&quot;
  xmlns:x2=&quot;http://www.w3.org/2002/06/xhtml2&quot;
  xmlns:aaa=&quot;http://www.w3.org/2005/07/aaa&quot;&gt;

In http://www.w3.org/TR/xhtml-modularization/DTD/xhtml-qname-1.mod the xmlns attribute is set to #FIXED with the value &quot;http://www.w3.org/1999/xhtml&quot;:

&lt;!ENTITY % XHTML.xmlns.attrib.prefixed
     &quot;xmlns:%XHTML.prefix;  %URI.datatype;   #FIXED &apos;%XHTML.xmlns;&apos;&quot;
&gt;

But it is allowed to extend the namespaces via %XHTML.xmlns.extra.attrib - that&apos;s the &quot;X&quot; in &quot;XHTML&quot;.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>