<?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>10022</bug_id>
          
          <creation_ts>2010-06-27 15:23:28 +0000</creation_ts>
          <short_desc>XHTML1 validation service should not permit &lt;h1&gt;</short_desc>
          <delta_ts>2011-08-23 18:09:05 +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>HEAD</version>
          <rep_platform>All</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>CLOSED</bug_status>
          <resolution>INVALID</resolution>
          
          
          <bug_file_loc>http://www.w3.org/TR/html401/struct/text.html#h-9.4</bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>critical</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Leif Halvard Silli">xn--mlform-iua</reporter>
          <assigned_to name="This bug has no owner yet - up for the taking">dave.null</assigned_to>
          <cc>xn--mlform-iua</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>36434</commentid>
    <comment_count>0</comment_count>
    <who name="Leif Halvard Silli">xn--mlform-iua</who>
    <bug_when>2010-06-27 15:23:28 +0000</bug_when>
    <thetext>http://www.w3.org/TR/html401/struct/text.html#h-9.4

If we try to validate the following as XHTML1 or HTML4

&lt;h1&gt;&lt;h2&gt;Foo&lt;/h2&gt;&lt;/h1&gt;

then we get differene answer:

[XHTML1 validator:] 
Line 9, Column 8: document type does not allow element &quot;h2&quot; here; missing one of &quot;object&quot;, &quot;applet&quot;, &quot;map&quot;, &quot;iframe&quot;, &quot;button&quot;, &quot;ins&quot;, &quot;del&quot; start-tag

[HTML4 validator:]
 Line 9, Column 8: document type does not allow element &quot;H2&quot; here; missing one of &quot;APPLET&quot;, &quot;OBJECT&quot;, &quot;MAP&quot;, &quot;IFRAME&quot;, &quot;BUTTON&quot; start-tag

It is not logical that the XHTML1 validator permits &lt;ins&gt; and &lt;del&gt; here. Were is the justification for that? HTML4 should here be identical.

See justification here: http://lists.w3.org/Archives/Public/public-html/2010Jun/0639.html

Summary: &quot;The purpose of  &lt;ins&gt; and &lt;del&gt; is not to document that the author corrected his/her code from illegal code//impossible DOM to legal code/possible DOM!&quot;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>36435</commentid>
    <comment_count>1</comment_count>
    <who name="Leif Halvard Silli">xn--mlform-iua</who>
    <bug_when>2010-06-27 16:05:23 +0000</bug_when>
    <thetext>To back up my claim about an error, I&apos;ll point out that the example given in HTML4.01 as an example of _illegal_ markup, currently is stamped as *valid* - both by the XHTML1.x validaton service and the HTML4.01 validation service. This is the example code from HTML401 (in lowercase, for XHTML compatibility):

&lt;p&gt;
&lt;ins&gt;&lt;div&gt;...block-level content...&lt;/div&gt;&lt;/ins&gt;
&lt;/p&gt;

(The example is found here: http://www.w3.org/TR/html401/struct/text.html#h-9.4)

As further back-up, I&apos;ll mention that Validator.nu agrees with my interpretation of HTML4.01 - if you try to validate the the HTML4 example as XHTML 1.0 Strict in the Validator.nu service, you get the following message:

]] XHTML element div not allowed as child of XHTML element ins in this context. 
   (Suppressing further errors from this subtree.)
   From line 8, column 6; to line 8, column 10
  &amp;#8617;&lt;p&gt;&amp;#8617;&lt;ins&gt;&lt;div&gt;...blo [[</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>36436</commentid>
    <comment_count>2</comment_count>
    <who name="Leif Halvard Silli">xn--mlform-iua</who>
    <bug_when>2010-06-27 16:15:26 +0000</bug_when>
    <thetext>As confirmation of my claim that Valdiator.nu supports my interpretation, if we change the &lt;ins&gt; in the HTML4.01 example to an &lt;object&gt; element, then Validator.nu stamps it as valid:

&lt;p&gt;
&lt;object data=&quot;image&quot; type=&quot;image/gif&quot; &gt;&lt;div&gt;...block-level content...&lt;/div&gt;&lt;/object&gt;
&lt;/p&gt;

then the Validator.nu service stamps it as valid HTML401 and valid XHTML1. Brilliant, Henri!</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>55702</commentid>
    <comment_count>3</comment_count>
    <who name="Ville Skyttä">ville.skytta</who>
    <bug_when>2011-08-23 17:53:15 +0000</bug_when>
    <thetext>The XHTML 1.0 DTD does allow ins and del in h1, so this is not a validator bug.

http://www.w3.org/TR/xhtml1/dtds.html#dtdentry_xhtml1-strict.dtd_h1
http://www.w3.org/TR/xhtml1/dtds.html#dtdentry_xhtml1-strict.dtd_Inline
http://www.w3.org/TR/xhtml1/dtds.html#dtdentry_xhtml1-strict.dtd_misc.inline

The HTML 4.01 DTD on the other hand does not.

http://www.w3.org/TR/html401/struct/global.html#edef-H1
http://www.w3.org/TR/html401/sgml/dtd.html#inline
(ins an del are not in %fontstyle;, %phrase;, %special;, or %formctrl;).</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>