W3C home > Mailing lists > Public > public-html-bugzilla@w3.org > September 2011

[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

From: <bugzilla@jessica.w3.org>
Date: Wed, 07 Sep 2011 20:15:55 +0000
To: public-html-bugzilla@w3.org
Message-Id: <E1R1OXL-0001vW-M2@jessica.w3.org>

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:


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

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 16:31:18 UTC