<?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>6995</bug_id>
          
          <creation_ts>2009-06-03 22:50:53 +0000</creation_ts>
          <short_desc>XHTML1.1 xmlns missing output provides erroneous fix</short_desc>
          <delta_ts>2009-10-23 12:45:53 +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>check</component>
          <version>HEAD</version>
          <rep_platform>Other</rep_platform>
          <op_sys>Linux</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>0.8.6</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Matthew Millar">mattmill30</reporter>
          <assigned_to name="This bug has no owner yet - up for the taking">dave.null</assigned_to>
          <cc>Siramizu</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>25448</commentid>
    <comment_count>0</comment_count>
      <attachid>705</attachid>
    <who name="Matthew Millar">mattmill30</who>
    <bug_when>2009-06-03 22:50:53 +0000</bug_when>
    <thetext>Created attachment 705
html source which reproduces &quot;Missing xmlns attribute&quot; error

Hi,

The Validator Error Output for &quot;Missing xmlns attribute for element html&quot; for XHTML 1.1 recommends replacing the &lt;html&gt; tag with &lt;html xmlns=&quot;http://www.w3.org/1999/xhtml&quot; xml:lang=&quot;en&quot; lang=&quot;en&quot;&gt;.

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

Attribute &quot;lang&quot; 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.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>25449</commentid>
    <comment_count>1</comment_count>
      <attachid>706</attachid>
    <who name="Matthew Millar">mattmill30</who>
    <bug_when>2009-06-03 22:54:09 +0000</bug_when>
    <thetext>Created attachment 706
html source which reproduces &quot;Attribute &quot;lang&quot; exists&quot; error</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>25450</commentid>
    <comment_count>2</comment_count>
      <attachid>706</attachid>
    <who name="Matthew Millar">mattmill30</who>
    <bug_when>2009-06-03 22:55:31 +0000</bug_when>
    <thetext>Comment on attachment 706
html source which reproduces &quot;Attribute &quot;lang&quot; exists&quot; error

html source after recommended &lt;html&gt; ammendment.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>25464</commentid>
    <comment_count>3</comment_count>
    <who name="Ville Skyttä">ville.skytta</who>
    <bug_when>2009-06-04 15:48:56 +0000</bug_when>
    <thetext>Thanks for the catch.  Fixed in CVS by removing the *lang attributes altogether, they&apos;re unrelated in the context of this error anyway.
http://www.w3.org/mid/E1MCF80-0005lx-UR%40lionel-hutz.w3.org</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>28893</commentid>
    <comment_count>4</comment_count>
    <who name="Ville Skyttä">ville.skytta</who>
    <bug_when>2009-10-23 12:45:53 +0000</bug_when>
    <thetext>*** Bug 8004 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>705</attachid>
            <date>2009-06-03 22:50:53 +0000</date>
            <delta_ts>2009-06-03 22:50:53 +0000</delta_ts>
            <desc>html source which reproduces &quot;Missing xmlns attribute&quot; error</desc>
            <filename>XHTML xmlns error.html</filename>
            <type>text/html</type>
            <size>168</size>
            <attacher name="Matthew Millar">mattmill30</attacher>
            
              <data encoding="base64">PCFET0NUWVBFIGh0bWwgUFVCTElDICItLy9XM0MvL0RURCBYSFRNTCAxLjEvL0VOIiAiaHR0cDov
L3d3dy53My5vcmcvVFIveGh0bWwxMS9EVEQveGh0bWwxMS5kdGQiPgo8aHRtbD4KICA8aGVhZD4K
ICA8dGl0bGU+PC90aXRsZT4KICA8L2hlYWQ+CiAgPGJvZHk+CiAgPC9ib2R5Pgo8L2h0bWw+
</data>

          </attachment>
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>706</attachid>
            <date>2009-06-03 22:54:09 +0000</date>
            <delta_ts>2009-06-03 22:54:09 +0000</delta_ts>
            <desc>html source which reproduces &quot;Attribute &quot;lang&quot; exists&quot; error</desc>
            <filename>XHTML lang error.html</filename>
            <type>text/html</type>
            <size>229</size>
            <attacher name="Matthew Millar">mattmill30</attacher>
            
              <data encoding="base64">PCFET0NUWVBFIGh0bWwgUFVCTElDICItLy9XM0MvL0RURCBYSFRNTCAxLjEvL0VOIiAiaHR0cDov
L3d3dy53My5vcmcvVFIveGh0bWwxMS9EVEQveGh0bWwxMS5kdGQiPgo8aHRtbCB4bWxucz0iaHR0
cDovL3d3dy53My5vcmcvMTk5OS94aHRtbCIgeG1sOmxhbmc9ImVuIiBsYW5nPSJlbiI+CiAgPGhl
YWQ+CiAgPHRpdGxlPjwvdGl0bGU+CiAgPC9oZWFkPgogIDxib2R5PgogIDwvYm9keT4KPC9odG1s
Pg==
</data>

          </attachment>
      

    </bug>

</bugzilla>