W3C home > Mailing lists > Public > www-validator-cvs@w3.org > July 2014

[Bug 26084] Validator reports "Empty heading" warning when only heading content is a script element

From: <bugzilla@jessica.w3.org>
Date: Tue, 08 Jul 2014 14:45:27 +0000
To: www-validator-cvs@w3.org
Message-ID: <bug-26084-169-4qMfgRql7t@http.www.w3.org/Bugs/Public/>

Michael[tm] Smith <mike@w3.org> changed:

           What    |Removed                     |Added
                 CC|                            |mike@w3.org

--- Comment #1 from Michael[tm] Smith <mike@w3.org> ---
(In reply to Porter Scobey from comment #0)
> Line 11, Column 8: Empty heading.
>  <h3><script type="text/javascript" src="scripts/buy3.js"></script></h3>
> 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'm pretty close to deciding to just drop it. For one
thing, if you're generating heading content from script, the script doesn't
need to be child of the heading anyway -- it could (probably should) be at the
end of the document anyway.

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

As an aside: If you'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.

You are receiving this mail because:
You are the QA Contact for the bug.
Received on Tuesday, 8 July 2014 14:45:28 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 15:17:57 UTC