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 12655 - Suggestion: For <wbr/> tag, include an example of use of <wbr/> in "text-wrap: none" ("white-space: nowrap" or "white-space: pre") content
Summary: Suggestion: For <wbr/> tag, include an example of use of <wbr/> in "text-wrap...
Status: CLOSED FIXED
Alias: None
Product: HTML WG
Classification: Unclassified
Component: LC1 HTML5 spec (show other bugs)
Version: unspecified
Hardware: Other other
: P3 normal
Target Milestone: ---
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: 2011-05-13 18:19 UTC by contributor
Modified: 2011-08-05 09:36 UTC (History)
6 users (show)

See Also:


Attachments

Description contributor 2011-05-13 18:19:28 UTC
Specification: http://www.whatwg.org/specs/web-apps/current-work/multipage/text-level-semantics.html
Section: http://www.whatwg.org/specs/web-apps/current-work/#the-wbr-element

Comment:
Suggestion: For <wbr/> tag, include an example of use of <wbr/> in "text-wrap:
none" ("white-space: nowrap" or "white-space: pre") content

Posted from: 204.89.129.148
User agent: Mozilla/5.0 (Windows NT 6.1; rv:2.0.1) Gecko/20100101 Firefox/4.0.1
Comment 1 Rob S. 2011-05-13 18:34:40 UTC
WebKit browsers (Chrome, etc.) support the <wbr/> tag in "text-wrap: none" content in addition to "text-wrap: normal" content. The current example shows <wbr/> being used at non-whitespace locations, since breaks may already occur at spaces in "text-wrap: normal" content.  However, in "text-wrap: none" content ("white-space: nowrap" or "white-space: pre" included), it also makes sense to include "wbr" elements in locations where whitespace appears.

Suggestion: Include an example with "white-space: nowrap" or "white-space: pre", such as:

<p style="white-space: pre">echo ("This is a very long line of computer program code. <wbr/>The author may want to allow it to be displayed across multiple lines, <wbr/>even though it might only be one line of code in the actual program.");</p>

or this example, which makes sure the trailing colon after the hypertext link doesn't get put on a line all by itself and the content inside the "cite" element breaks only at a couple appropriate locations:

<p>One of my favorite quotes from <span style="white-space: nowrap">
   <a href="http://www.Shakespeare-Literature.com/Twelfth_Night/10.html">
      <cite>William Shakespeare <wbr/>Twelfth Night <wbr/>Act II Scene 5</cite></a>:</span>
</p>
<blockquote
   cite="http://www.Shakespeare-Literature.com/Twelfth_Night/10.html"
>In my stars I am above thee; but be not afraid of greatness:
   some are born great, some achieve greatness,
   and some have greatness thrust upon 'em.
</blockquote>
Comment 2 Michael[tm] Smith 2011-08-04 05:02:39 UTC
mass-moved component to LC1
Comment 3 Ian 'Hixie' Hickson 2011-08-04 06:36:54 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: Accepted
Change Description: see diff given below
Rationale: Concurred with reporter's comments.
Comment 4 contributor 2011-08-04 06:38:00 UTC
Checked in as WHATWG revision r6363.
Check-in comment: Add an example for <wbr>.
http://html5.org/tools/web-apps-tracker?from=6362&to=6363
Comment 5 Rob S. 2011-08-04 11:23:49 UTC
Thanks!
Comment 6 Ms2ger 2011-08-05 09:36:55 UTC
Moving back to LC1 component and interpreting comment 5 as commenter satisfaction.