<?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>26084</bug_id>
          
          <creation_ts>2014-06-13 14:04:17 +0000</creation_ts>
          <short_desc>Validator reports &quot;Empty heading&quot; warning when only heading content is a script element</short_desc>
          <delta_ts>2015-08-23 06:58:44 +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>Windows NT</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></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="Porter Scobey">porter.scobey</reporter>
          <assigned_to name="Michael[tm] Smith">mike+validator</assigned_to>
          <cc>mike</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>107783</commentid>
    <comment_count>0</comment_count>
    <who name="Porter Scobey">porter.scobey</who>
    <bug_when>2014-06-13 14:04:17 +0000</bug_when>
    <thetext>Line 11, Column 8: Empty heading.

 &lt;h3&gt;&lt;script type=&quot;text/javascript&quot; src=&quot;scripts/buy3.js&quot;&gt;&lt;/script&gt;&lt;/h3&gt;

The above line of markup causes the warning on the first line. The warning goes
away if I simply insert an x as follows:

 &lt;h3&gt;&lt;script type=&quot;text/javascript&quot; src=&quot;scripts/buy3.js&quot;&gt;&lt;/script&gt;x&lt;/h3&gt;

It would seem that script output should be acceptable as heading content, so
this scenario should not generate a warning.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>108799</commentid>
    <comment_count>1</comment_count>
    <who name="Michael[tm] Smith">mike</who>
    <bug_when>2014-07-08 14:45:27 +0000</bug_when>
    <thetext>(In reply to Porter Scobey from comment #0)
&gt; Line 11, Column 8: Empty heading.
&gt; 
&gt;  &lt;h3&gt;&lt;script type=&quot;text/javascript&quot; src=&quot;scripts/buy3.js&quot;&gt;&lt;/script&gt;&lt;/h3&gt;
&gt; 
&gt; The above line of markup causes the warning on the first line.

That empty-heading warning is something I added fairly recently, experimentally, and I&apos;m pretty close to deciding to just drop it. For one thing, if you&apos;re generating heading content from script, the script doesn&apos;t need to be child of the heading anyway -- it could (probably should) be at the end of the document anyway.

So I&apos;ll probably turn off the empty-heading warning in next couple of weeks.

As an aside: If you&apos;re doing things like generating your heading content from script, you might want to consider validating your generated content rather than your source.

At http://codepen.io/stevef/full/LasCJ/ you can find a bookmarklet that enables you to use the validator to check the serialized DOM of any Web page.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>