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

https://www.w3.org/Bugs/Public/show_bug.cgi?id=26084

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