[Bug 14058] Apparently some people are reading this to mean that it's wrong to refer to section elements in CSS selectors: http://www.stubbornella.org/content/2011/09/06/style-headings-using-html5-sections/ — please clarify to make it obvious that the discouragemen

http://www.w3.org/Bugs/Public/show_bug.cgi?id=14058

Nicole Sullivan <spam@stubbornella.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |spam@stubbornella.org

--- Comment #1 from Nicole Sullivan <spam@stubbornella.org> 2011-09-07 20:15:55 UTC ---
As I quoted in my article, the spec is very clear:

"The section element is not a generic container element. When an element is
needed for styling purposes or as a convenience for scripting, authors are
encouraged to use the div element instead. "

Which I read to mean that section elements should not be added simply to
achieve a particular style. They should only be used when semantically
relevant. This is why I asserted in the article that we need to structure our
CSS in a way that doesn't force sections to be misused, like in the
anti-pattern I shared:

https://github.com/cboone/hypsometric-css/blob/master/html5/html5-defaults.css#L426

IMO, the spec is pretty clear. I wouldn't change the wording.

-- 
Configure bugmail: http://www.w3.org/Bugs/Public/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.

Received on Wednesday, 7 September 2011 20:15:59 UTC