<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://www.w3.org/Bugs/Public/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4"
          urlbase="https://www.w3.org/Bugs/Public/"
          
          maintainer="sysbot+bugzilla@w3.org"
>

    <bug>
          <bug_id>9097</bug_id>
          
          <creation_ts>2010-02-20 11:24:21 +0000</creation_ts>
          <short_desc>Add wbr { content: &quot;\200B&quot;; } (ZWSP)?</short_desc>
          <delta_ts>2011-12-01 00:06:03 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>HTML WG</product>
          <component>LC1 HTML5 spec</component>
          <version>unspecified</version>
          <rep_platform>All</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>WONTFIX</resolution>
          
          
          <bug_file_loc>http://www.whatwg.org/specs/web-apps/current-work/#punctuation-and-decorations</bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P3</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          <dependson>9711</dependson>
          <blocked>13098</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter>contributor</reporter>
          <assigned_to>contributor</assigned_to>
          <cc>ayg</cc>
    
    <cc>ian</cc>
    
    <cc>mike</cc>
    
    <cc>public-html-admin</cc>
    
    <cc>public-html-wg-issue-tracking</cc>
    
    <cc>xn--mlform-iua</cc>
          
          <qa_contact name="HTML WG Bugzilla archive list">public-html-bugzilla</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>32470</commentid>
    <comment_count>0</comment_count>
    <who name="">contributor</who>
    <bug_when>2010-02-20 11:24:21 +0000</bug_when>
    <thetext>Section: http://www.whatwg.org/specs/web-apps/current-work/#punctuation-and-decorations

Comment:
Add wbr { content: &quot;\200B&quot;; } (ZWSP)?

Posted from: 91.182.134.139 by ms2ger@gmail.com</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>32680</commentid>
    <comment_count>1</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2010-02-25 11:20:51 +0000</bug_when>
    <thetext>EDITOR&apos;S RESPONSE: This is an Editor&apos;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: Did Not Understand Request
Change Description: no spec change
Rationale: Is that really equivalent in all cases? I&apos;d rather just leave it up to prose unless that really does match all cases correctly.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>32696</commentid>
    <comment_count>2</comment_count>
    <who name="Simon Pieters">zcorpan</who>
    <bug_when>2010-02-25 22:37:19 +0000</bug_when>
    <thetext>I think it doesn&apos;t make a difference (for Opera/WebKit) in the normal case and doesn&apos;t do what&apos;s desired inside &lt;nobr&gt;.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>50621</commentid>
    <comment_count>3</comment_count>
    <who name="Aryeh Gregor">ayg</who>
    <bug_when>2011-07-03 17:17:39 +0000</bug_when>
    <thetext>*** Bug 13098 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>50636</commentid>
    <comment_count>4</comment_count>
    <who name="Leif Halvard Silli">xn--mlform-iua</who>
    <bug_when>2011-07-04 10:09:28 +0000</bug_when>
    <thetext>(In reply to comment #1)

&gt; Rationale: Is that really equivalent in all cases? I&apos;d rather just leave it up
&gt; to prose unless that really does match all cases correctly.

Though browsers are extremely buggy and uneven w.r.t. how they implement - or *whether* they implemnent &lt;wbr&gt;, the answer is  yes, it *is* equivalent in all cases: normal, pre, nowrap, pre-wrap and pre-line. Test page:  http://malform.no/testing/html5/nobr

The test page shows that unless the browser has a genereal bug in its CSS generated content support *or* a bug in its implementation of Zero Width Space character, then the proposed wbr{content:&quot;\00200B&quot;} matches reality.

Caveat: I disagree that &lt;wbr&gt; should have any effect inside white-space:pre and white-space:nowrap. 

(In reply to comment #0)
&gt; Add wbr { content: &quot;\200B&quot;; } (ZWSP)?

+1 But you forgot two zeroes:  wbr{content:&quot;\00200B&quot;}

(In reply to comment #2)
&gt; I think it doesn&apos;t make a difference (for Opera/WebKit) in the normal case

Your statement is incorrect, with regard to Opera. The proposed style (see above) does work very well with Opera. Not only does it work well in Opera: if we change the selector from wbr{} to wbr:before{}, then it also works very well in IE8. Test case for white-space:normal: http://malform.no/testing/html5/nobr#normal

&gt; and doesn&apos;t do what&apos;s desired inside &lt;nobr&gt;.

Test case: http://malform.no/testing/html5/nobr#nowrap

IE-in-quirks mode, IE6, IE7, Webkit and Konqueror do *not* define the desired behavior. The desired behaviour is defined by Firefox 5, IE8, IE9 and Opera. See bug 9711 (see 5th comment).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>50639</commentid>
    <comment_count>5</comment_count>
    <who name="Leif Halvard Silli">xn--mlform-iua</who>
    <bug_when>2011-07-04 11:49:10 +0000</bug_when>
    <thetext>Peter Paul Koch implemented wbr in Opera  as wbr{ content: &quot;\00200B&quot; }. However, he was unable to make it work in IE8: http://www.quirksmode.org/oddsandends/wbr.html

However, it turns out that one can enable it in IE8, very easily, if only one uses wbr{display:inline-block} to trigger the infamous hasLayout. Peter Paul Koch&apos;s test case, with the hasLayout trigger: http://malform.no/testing/html5/wbr-haslayout</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>50702</commentid>
    <comment_count>6</comment_count>
    <who name="Leif Halvard Silli">xn--mlform-iua</who>
    <bug_when>2011-07-05 23:55:36 +0000</bug_when>
    <thetext>(In reply to comment #5)

&gt; However, it turns out that one can enable it in IE8, very easily, if only one
&gt; uses wbr{display:inline-block} to trigger the infamous hasLayout. Peter Paul
&gt; Koch&apos;s test case, with the hasLayout trigger:
&gt; http://malform.no/testing/html5/wbr-haslayout

SORRY, incorrect: it does *not* trigger hasLayout. 

CORRECT INTEPRETATION: *{display:inline-block}  creates a line-break opportunity.  

Every tested browser treats an empty element with {display:inline-block} as a line-break oportunity. See my *heavily* updated test page: http://malform.no/testing/html5/nobr

Thus, instead of wbr{content:&quot;\00200B&quot;}, we could simply say wbr{display:inline-block}. This is far more compatible with existing web browsers, as well.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>50715</commentid>
    <comment_count>7</comment_count>
    <who name="Leif Halvard Silli">xn--mlform-iua</who>
    <bug_when>2011-07-06 09:39:40 +0000</bug_when>
    <thetext>I would like extend ms2ger&apos;s proposed style,

         wbr{content:&quot;\00200B&quot;;}  

with one more style rule:

         nobr wbr{white-space:normal}

Those two style rules are together able to replicate the &lt;wbr&gt; effect inside &lt;nobr&gt;

See new test page:  http://malform.no/testing/html5/nobr+wbr</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>50730</commentid>
    <comment_count>8</comment_count>
    <who name="Leif Halvard Silli">xn--mlform-iua</who>
    <bug_when>2011-07-06 17:00:33 +0000</bug_when>
    <thetext>(In reply to comment #7)

Or perhaps better, this solution:

/* Outside NOBR:  */
 wbr
     { 
          display:inline-block;
     }

/* Inside NOBR:  */
nobr wbr
      { 
          display:inline; 
          white-space:normal; 
          content:&quot;\00200B&quot;;
     }

NOTE:  For IE7/IE6/IE Quirks-Mode, wbr{inline-block;} also works inside NOBR, but in the other browsers, wbr{inline-block} makes it **not** work in NOBR.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>53672</commentid>
    <comment_count>9</comment_count>
    <who name="Michael[tm] Smith">mike</who>
    <bug_when>2011-08-04 05:16:14 +0000</bug_when>
    <thetext>mass-move component to LC1</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>60709</commentid>
    <comment_count>10</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2011-12-01 00:06:03 +0000</bug_when>
    <thetext>EDITOR&apos;S RESPONSE: This is an Editor&apos;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: Rejected
Change Description: no spec change
Rationale: I see no benefit to doing this, and it&apos;s quite risky.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>