<?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>9711</bug_id>
          
          <creation_ts>2010-05-11 18:44:54 +0000</creation_ts>
          <short_desc>&lt;wbr&gt; must not override white-space:pre (or differ from Zero Width Space in any other needless way)</short_desc>
          <delta_ts>2011-08-06 03:25:26 +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>Other</rep_platform>
          <op_sys>other</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>a11y</keywords>
          <priority>P3</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>LC</target_milestone>
          
          <blocked>9097</blocked>
    
    <blocked>9350</blocked>
    
    <blocked>13120</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter>contributor</reporter>
          <assigned_to name="Ian &apos;Hixie&apos; Hickson">ian</assigned_to>
          <cc>ian</cc>
    
    <cc>mike</cc>
    
    <cc>public-html-admin</cc>
    
    <cc>public-html-wg-issue-tracking</cc>
    
    <cc>xn--mlform-iua</cc>
    
    <cc>zcorpan</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>35572</commentid>
    <comment_count>0</comment_count>
    <who name="">contributor</who>
    <bug_when>2010-05-11 18:44:54 +0000</bug_when>
    <thetext>Section: http://www.whatwg.org/specs/web-apps/current-work/#punctuation-and-decorations

Comment:
&quot;The wbr element is expected to override the &apos;white-space&apos; property and always
provide a line-breaking opportunity.&quot; -- &quot;In testing, I found that Gecko and
WebKit allow &lt;wbr&gt; to override white-space: nowrap, but not white-space: pre.&quot;
(from http://www.w3.org/Bugs/Public/show_bug.cgi?id=9350#c2 )

Posted from: 88.131.66.80 by simonp@opera.com</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>37804</commentid>
    <comment_count>1</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2010-08-24 23:17:38 +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: There are far more values than just &apos;nowrap&apos; and &apos;pre&apos;.

If you want me to change this to list specific values for &apos;white-space&apos;, could you list all the values and say for each one whether it should override or not?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>50627</commentid>
    <comment_count>2</comment_count>
    <who name="Leif Halvard Silli">xn--mlform-iua</who>
    <bug_when>2011-07-04 03:37:42 +0000</bug_when>
    <thetext>The (In reply to comment #1)

&gt; If you want me to change this to list specific values for &apos;white-space&apos;, could
&gt; you list all the values and say for each one whether it should override or not?

List of &apos;white-space&apos; values for which &lt;wbr&gt; should cause a line break opportunity:

     *{white-space:pre-line}
     *{white-space:pre-wrap}

Thus:&lt;wbr&gt; should *NOT* provide line break oportunity for white-space:pre or white-space:nowrap.

JUSTIFICATION: 

(1) Basic premise: &lt;wbr&gt;&apos;s effects should, for sanity, be as much aligned with the ZERO WIDTH SPACE character as possible.

(2) Authors: Since &lt;wbr&gt; has extremely bad and uneven cross browser support, HTML5 should not encourage its use by attaching &quot;attractive&quot; side effects to it  (other than those that follow by necessity due to the fact that it is an element and not a character). &quot;Extra&quot; features will only make it hard to explain and will also make authors use it for the extra (read: the wrong) reasons. By extra features, I have in mind: white-space, clipboard, search/find or doubleclicking behaviour that differs from Zero Width Space (ZWSP).

(3) Accessibilitiy: HTML5 defines &lt;wbr&gt; as a word separator. And screenreaders, such as VoiceOver, therefor read &quot;pres&lt;wbr&gt;ident&quot; as &quot;pres ident&quot; rather than as &quot;president&quot;. A real world example: VoiceOver reads &quot;incor rect&quot; and not &quot;incorrect&quot; in the table of this page:  http://www.quirksmode.org/compatibility.html  (Note: If the user makes use of a browser which does not support &lt;wbr&gt; at all (such as IE8/IE9), then he/she will not experience this issue.)

(3) Vendors: If there are problems with the way the ZERO WIDTH CHARACTER works, then vendors need to work on these problems instead of promoting &lt;wbr&gt; as a solution with problem solving sideeffects.

(4) The &quot;unique&quot; features of &lt;wbr&gt; seems to be the result of the bad/uneven implementation status rather than very well thought out features. To demonstrate this, hereby follows some test results, which compares treatment of &lt;wbr&gt; with treatment of shy and zwsp.

   A) Should a search for the single word &quot;president&quot; also match &quot;pres&lt;wbr&gt;ident&quot;?
       http://malform.no/testing/html5/wbrwhitespace/#wordtest
       Both &lt;wbr&gt; supporting and not wbr supporting browsers in this regard actually treat &lt;wbr/&gt; like they treat  &lt;span&gt;&lt;/span&gt;. Thus e.g. Firefox treats &lt;wbr&gt; different from zwsp. But it would be incorrect to promote &lt;wbr&gt; because browsers - erroneously- fail to treat it as a word separator when performing search. Instead, it should be made to work like Zero Width Character. If this causes problems, then Chrome and Webkit trunk have a solution: they more or less ignore *all* non-printing characters when performing a search. In other words: fine tuning of search facilities is what is needed, rather than promotion of &lt;wbr&gt;.

   B) Doubleclicking the two words &quot;pres&quot; and &quot;ident&quot; that are separated by &lt;wbr&gt;:
       http://malform.no/testing/html5/wbrwhitespace/#wordtest
       Those browsers that do ignore &lt;wbr&gt; do in principle also select both words as one word. (Exception: IE8 is severely broken - it doesn&apos;t even permit an empty &lt;span&gt;&lt;/span&gt; inside the word/between the words.) Amongst those browsers that *do* support &lt;wbr&gt;, then Firefox does not select both words. Konqueror behaves like Firefox. Thus doubleclicking inside Konqueror and Firefox makes not difference between &lt;wbr&gt; and the way ZWSP character (is supposed to) work. Opera ignores &lt;wbr&gt; - but in the rest of the details, it behaves like Firefox. Webkit trunk and Chrome partly jumps over the problem by more or less ignoring all non-printing characters, hence they do select both words. But Webkit/Chrome do make a minor distinction between &lt;wbr&gt; and the ZeroWithSpace: if you doubleclick *before* the ZeroWidthSpace, then only the first word is selected. While if you click after the ZeroWithSpace, then both words are selected. (For &lt;wbr&gt;, Chrome/Webkit makes no such minor distinction.) 

   C) Copying words with &lt;wbr&gt;/SHY/ZWSP to the clipboard
       http://malform.no/testing/html5/wbrwhitespace/#wordtest
       Is &lt;wbr&gt;, SHY and ZWSP copied to clipboard?
       Opera:
           WBR: no, *because* it doesn&apos;t support &lt;wbr&gt;.
           SHY: only if causing a hyphenation.
           ZWSPC: yes always.
       IE8:
           WBR: no, *because* it doesn&apos;t support &lt;wbr&gt;.
           SHY: yes, always
           ZWSPC: yes always.
       Webkit trunk/Chrome/Konqueror/Firefox
           WBR: no
           SHY: Yes, always
           ZWSPC: yes always.

     SUMMARY: I think this proves that &lt;wbr&gt;&apos;s &quot;unique&quot; features (which were used to justify &lt;wbr&gt;&apos;s validty in bug 9350, are due to sloppy  - or lack of - implementation rather than anything elese. Hence, there is no reason for the rendering section of HTML5 to maintain any of these &quot;unique&quot; features.

(5) CSS + correct white-space value can create the exact same effect as &lt;wbr&gt; is supposed to have. Thus there is no reason provide authors with an option to provide line break opportunities inside whites-space:pre. Furthermore, Webkit is pretty unique in its treatmetn of &lt;wbr&gt; - there is no reason to encourage its behaviour. Hereby follows some test results that demonstrates that CSS + correct white-space value is sufficient.

  A) All browsers that support both CSS and SOFT HYPHEN or ZERO WIDTH *do permit* that line breaks can occur on these characters whenever white-space:pre-line or white-space:pre-wrap is used. Tested in: Webkit, IE8/IE9, Firefox 5, Opera 11.50, Konqueror 4.6.4. (Konqueror showed a bug in its support for Zero Width Space, but supports Soft Hyphen)
      Test cases: 
      http://malform.no/testing/html5/wbrwhitespace/#pre-wrap
      http://malform.no/testing/html5/wbrwhitespace/#pre-line

(2) Only Webkit breaks the line inside  white-space:pre.
      IE8/IE9, Firefox 5, Opera 11.50, Konqueror 4.6.4 do *not*.
      Test case:
      http://malform.no/testing/html5/wbrwhitespace/#pre

(3) Only Webkit and Konequeror break the line inside white-space:nowrap
      IE8/IE9, Firefox 5, Opera 11.50 do *not*.
      Test case:
      http://malform.no/testing/html5/wbrwhitespace/#nowrap</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>50628</commentid>
    <comment_count>3</comment_count>
    <who name="Leif Halvard Silli">xn--mlform-iua</who>
    <bug_when>2011-07-04 03:46:13 +0000</bug_when>
    <thetext>(In reply to comment #2)

&gt;    C) Copying words with &lt;wbr&gt;/SHY/ZWSP to the clipboard
&gt;        http://malform.no/testing/html5/wbrwhitespace/#wordtest
&gt;        Is &lt;wbr&gt;, SHY and ZWSP copied to clipboard?
&gt;        Opera:
&gt;            WBR: no, *because* it doesn&apos;t support &lt;wbr&gt;.
&gt;            SHY: only if causing a hyphenation.
&gt;            ZWSPC: yes always.
&gt;        IE8:
&gt;            WBR: no, *because* it doesn&apos;t support &lt;wbr&gt;.
&gt;            SHY: yes, always
&gt;            ZWSPC: yes always.
&gt;        Webkit trunk/Chrome/Konqueror/Firefox
&gt;            WBR: no
&gt;            SHY: Yes, always
&gt;            ZWSPC: yes always.


Forgot to add: &lt;br&gt; *is* copied to the clipboard as a linefeed character (at least it results in a linefeed when pasting into plain text). Therefore it does not make sense to not copy &lt;wbr&gt; as a ZWSP character to the clipboard. The fact that &lt;wbr&gt; is not currently copied to the clipboard has nothing to do with its &quot;element features&quot; as opposed to ZWSP&apos;s &quot;character features&quot;. If users need a way to copy e.g. source code examples without zwsp in the clipboard, then this needs to be solved in a different way.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>50630</commentid>
    <comment_count>4</comment_count>
    <who name="Leif Halvard Silli">xn--mlform-iua</who>
    <bug_when>2011-07-04 05:29:29 +0000</bug_when>
    <thetext>(In reply to comment #2)
&gt;    B) Doubleclicking the two words &quot;pres&quot; and &quot;ident&quot; that are separated by
&gt; &lt;wbr&gt;:
&gt;        http://malform.no/testing/html5/wbrwhitespace/#wordtest

&gt; Amongst those
&gt; browsers that *do* support &lt;wbr&gt;, then Firefox does not select both words.
&gt; Konqueror behaves like Firefox.

And IE in QuirksMode (where it supports &lt;wbr&gt;) does also not select both words.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>50634</commentid>
    <comment_count>5</comment_count>
    <who name="Leif Halvard Silli">xn--mlform-iua</who>
    <bug_when>2011-07-04 09:36:50 +0000</bug_when>
    <thetext>(In reply to comment #0)

&gt; In testing, I found that Gecko and
&gt; WebKit allow &lt;wbr&gt; to override white-space: nowrap, but not white-space: pre.&quot;

Actually, despite that you challenge the spec text, your picture of the facts is incorrect and thus far too positive (towards the current spec text).

FIRSTLY: Reality is that Firefox 5  does *not* behave as you say. That is: &lt;wbr&gt; does not override white-space:nowrap in FIrefox 5.  Thus Webkit, Konqueror and IE in quirks-mode are alone in showing this behaviour. 

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

SECONDLY: Although Webkit does perform some kind of line break for &lt;wbr&gt; inside white-space:pre, it is difficult to understand what kind of logics it uses. Apparently, it only breaks the *last* &lt;wbr&gt;, if there is more than one. Note as well, that IE in Quirks-Mode does *not* allow &lt;wbr&gt; to cause a line break. 

Test: http://malform.no/testing/html5/nobr#pre</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>52532</commentid>
    <comment_count>6</comment_count>
    <who name="Michael[tm] Smith">mike</who>
    <bug_when>2011-08-04 05:02:20 +0000</bug_when>
    <thetext>mass-moved component to LC1</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>54280</commentid>
    <comment_count>7</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2011-08-06 03:25:26 +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: The spec now has an example demonstrating what I think is a valid use case for &lt;wbr&gt; in &lt;pre&gt;.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>