This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 9143 - The b element lacks encouragement to use classes (cf i element)
Summary: The b element lacks encouragement to use classes (cf i element)
Status: RESOLVED FIXED
Alias: None
Product: HTML WG
Classification: Unclassified
Component: pre-LC1 HTML5 spec (editor: Ian Hickson) (show other bugs)
Version: unspecified
Hardware: Other other
: P3 normal
Target Milestone: LC
Assignee: Ian 'Hixie' Hickson
QA Contact: HTML WG Bugzilla archive list
URL: http://www.whatwg.org/specs/web-apps/...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-02-25 10:20 UTC by contributor
Modified: 2010-10-04 14:45 UTC (History)
5 users (show)

See Also:


Attachments

Description contributor 2010-02-25 10:20:30 UTC
Section: http://www.whatwg.org/specs/web-apps/current-work/#the-b-element

Comment:
I notice that under the definition for the-i-element it says "Authors are
encouraged to use the class attribute on the i element to identify why the
element is being used", but there's no similar text for b. Given the Note on
both, it seems you'd want to mention classes to enable CSS styling on
the-b-element too

Posted from: 221.191.254.72 by w3.org@boblet.net
Comment 1 Oli Studholme 2010-02-26 14:54:14 UTC
In addition, none of the b element examples and only one of two of the i element examples actually use classes. It would be good to add something like these to the b examples
* class="component" (or part-name)
* class="object"
* class="opening-text" (or lede, lead, intro, opening-phrase etc)
and to the second i example
* class="dream"

Finally with the lede sentence example you might want to change it to <b>Six abandoned kittens</b> have, as itd be more appropriate to use <strong> (it looks like a summary of the article which would be more important), <p class="lede">, h2 + p {}, or h2 p:first-of-type {} to embolden the entire paragraph.
Comment 2 Ian 'Hixie' Hickson 2010-03-29 21:47:27 UTC
EDITOR'S RESPONSE: This is an Editor's Response to your comment. If you are satisfied with this response, please change the state of this bug to CLOSED. If you have additional information and would like the editor to reconsider, please reopen this bug. If you would like to escalate the issue to the full HTML Working Group, please add the TrackerRequest keyword to this bug, and suggest title and text for the tracker issue; or you may create a tracker issue yourself, if you are able to do so. For more details, see this document:
   http://dev.w3.org/html5/decision-policy/decision-policy.html

Status: Partially Accepted
Change Description: see diff given below
Rationale: I've added a similar paragraph to the <b> section.

I haven't added class="" to each example, as it is not the case that every use would need a class. For example, most of the <b> element cases are just using it to mean "keyword", which is basically the generic meaning of the element. Similarly, some of the <i> cases (e.g. the dream sequence) are just using it to mean "alternate voice", which is the generic meaning.

I haven't changed the lede example because that's how the BBC have it. Using CSS only wouldn't necessarily be the right solution here, since the lede is its own thing whether the document is styled or not.
Comment 3 Ian 'Hixie' Hickson 2010-03-29 22:10:04 UTC
http://html5.org/tools/web-apps-tracker?from=4895&to=4896