<?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>13120</bug_id>
          
          <creation_ts>2011-07-02 11:06:02 +0000</creation_ts>
          <short_desc>Delegate &lt;wbr&gt; support to quirks-mode - make it have zero effect in no-quirks and almost-standards</short_desc>
          <delta_ts>2011-08-04 05:04:05 +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>PC</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>WONTFIX</resolution>
          
          
          <bug_file_loc>http://dev.w3.org/html5/spec/text-level-semantics#the-wbr-element</bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          <dependson>9350</dependson>
    
    <dependson>9711</dependson>
    
    <dependson>10342</dependson>
    
    <dependson>13098</dependson>
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Leif Halvard Silli">xn--mlform-iua</reporter>
          <assigned_to name="Ian &apos;Hixie&apos; Hickson">ian</assigned_to>
          <cc>ayg</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>50586</commentid>
    <comment_count>0</comment_count>
    <who name="Leif Halvard Silli">xn--mlform-iua</who>
    <bug_when>2011-07-02 11:06:02 +0000</bug_when>
    <thetext>REQUEST: &lt;wbr&gt; should be made obsolete, in favour of the zero with space character (zwsp). 

JUSTIFICATON: According to the spec, the usecase for &lt;wbr&gt; is  &quot;something which, for effect, is written as one long word&quot;. However:

(1) The &lt;wbr&gt; usecase is extremely narrow. 

(2) &lt;wbr&gt;&apos;s benefits over the zero width space character are unclear. It can be styled, and it apparently isn&apos;t copied to the clipboard. It can also be said to be easier to type. But if these effects are so important, why don&apos;t we also create similar elements for the other whitespace/invisible characters of Unicode? Other whitespace/invisble characters can also be difficult to type, so why does this character need element representation?

(3) In praxis, authors do not have a clear picture of what the usecase for &lt;wbr&gt; is. For example, Aryeh in a comment seemd to think the usecase is to avoid that long words make a table stretch (plus the extra benefit over the zero width character hat &lt;wbr&gt; is not copied to the clipboard): http://www.w3.org/Bugs/Public/show_bug.cgi?id=13098#c8  Other authors, again (like myself) have seemed to think &lt;wbr&gt; has something to do with hyphenation.

(4) The zwsp should be used seldomly and concsiously. The fact that it is difficult to type, is a feature! (Though, OTOH, there are _several_ named character references for it which makes it easy enough to type!) But the fact that &lt;wbr&gt; (which conceptually represents the zwsp character)  is valid, will make authors use is it much more often than the use case permits. Why? Because its validity &quot;favors&quot; the zero width space character over the other invisble/whitespace Unicode characters that do not have an HTML element to represent their effect.

(5) Authors in reality need something else: When a line break happens in the middle of a word because the word contains a &lt;wbr&gt; element,  the result is something which visually looks like two words. While this is in line with &lt;wbr&gt; as HTML5 specifies it, what most authors using &lt;wbr&gt; *really* want/need, is a &lt;shy&gt; element which would make the word become *hyphenated* at the point where &lt;shy&gt; is located. So, if &lt;wbr&gt; remains valid, we should create a lot more white space elements as well.

(6) Internet Explorer version 8 and 9 has removed support for &lt;wbr&gt; - they now only support it in Quirks-Mode. Opera still does not support it. In contrast, the zero width character is supported by both Webkit; Firefox, Opera and IE - in standards mode as well.

(7) Keeping this element conforming only distracts authors and vendors attention from more important things. (For instance, some web browsers, like Konquerer and some text browsers, have support for &lt;wbr&gt; but do not have support for the zwsp character.)

(8) Even if we make it obsolete, conforming HTML5 parsers are still required to support it. Thus, it is pretty risk free. In fact, &lt;wbr&gt; wasn&apos;t even mentioned in HTML4, so the fact that it gets obsolete status, can in fact be seen as a form of recognition ...

(9) Currently (in HTML5/XHTML1.x), the &lt;wbr&gt; is non-conforming. And since the benefits of &lt;wbr&gt; are so unclear while its drawbacks are so clear, it makes no sense to spend time advocating its validity.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>50587</commentid>
    <comment_count>1</comment_count>
    <who name="Leif Halvard Silli">xn--mlform-iua</who>
    <bug_when>2011-07-02 11:09:23 +0000</bug_when>
    <thetext>(In reply to comment #0)

Typo:

&gt; (9) Currently (in HTML5/XHTML1.x), 

Sorry. Meant **(in HTML4/XHTML1.x)**.

&gt;  the &lt;wbr&gt; is non-conforming. And since the
&gt; benefits of &lt;wbr&gt; are so unclear while its drawbacks are so clear, it makes no
&gt; sense to spend time advocating its validity.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>50593</commentid>
    <comment_count>2</comment_count>
    <who name="Leif Halvard Silli">xn--mlform-iua</who>
    <bug_when>2011-07-02 11:57:04 +0000</bug_when>
    <thetext>(In reply to comment #0)

JUSTIFICATION continued:

10) FUD: Keeping &lt;wbr&gt; valid only serves to sustain FUD about how well browsers support the Zero Width Space character (zwsp). For example, pointing to the lackign support for zwsp in very legacy IE6, Wikipedia gives the impression that &lt;wbr&gt; is better supported than the Zero Width Space character: [link]

   ]] In HTML pages this space can be used as a potential line-break in long words as a replacement for the non-standard &lt;wbr&gt; tag. However, the zero-width space is not supported in all web browsers, most notably Internet Explorer version 6 and below[1]. [[

[link] http://en.wikipedia.org/w/index.php?title=Zero-width_space&amp;oldid=435186349

The reality is of course the opposite: Zero Width Space character is *better* supported than &lt;wbr&gt;.

[11] Too many options: HTML5 includes 5 named character references for the zwsp character.  Thus authors have enough options. The &lt;wbr&gt; option only serves to create confusion about the benefits of  the character versus the element.

[12] If &quot;simple to type&quot; is an argument then &amp;zwsp; can be made a valid named character references, as requested in Bug 1310.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>50594</commentid>
    <comment_count>3</comment_count>
    <who name="Leif Halvard Silli">xn--mlform-iua</who>
    <bug_when>2011-07-02 11:58:49 +0000</bug_when>
    <thetext>(In reply to comment #2)
&gt; (In reply to comment #0)

Typo:

&gt; [12] If &quot;simple to type&quot; is an argument then &amp;zwsp; can be made a valid named
&gt; character references, as requested in Bug 1310.

Sorry, meant Bug 13108.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>50596</commentid>
    <comment_count>4</comment_count>
    <who name="Leif Halvard Silli">xn--mlform-iua</who>
    <bug_when>2011-07-02 13:13:00 +0000</bug_when>
    <thetext>(In reply to comment #2)
&gt; (In reply to comment #0)

&gt; 10) FUD: Keeping &lt;wbr&gt; valid only serves to sustain FUD about how well browsers
&gt; support the Zero Width Space character (zwsp).  [...] IE6, Wikipedia 

The IE6 bug actually only occurs in combination with certains fonts that are lacking the zwsp characters: http://dunae.ca/2009/better-web-typography-with-spaces-and-hyphens/

I am not able to reproduce this bug - may be because the fonts have improved?

It is anyway purely an aficionado bug in a irrelevant web browser. (Aficionados will be able to fix it - probably like this: &lt;span style=&quot;font-family:serif&quot;&gt;&amp;#x200b;&lt;/span&gt;.)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>50597</commentid>
    <comment_count>5</comment_count>
    <who name="Leif Halvard Silli">xn--mlform-iua</who>
    <bug_when>2011-07-02 13:28:05 +0000</bug_when>
    <thetext>Test cases: http://malform.no/testing/html5/wbrzerowidthspace.html</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>50618</commentid>
    <comment_count>6</comment_count>
    <who name="Aryeh Gregor">ayg</who>
    <bug_when>2011-07-03 17:16:10 +0000</bug_when>
    <thetext>Use-cases were presented by Maciej in bug 9350, where he pointed out that its behavior does not match zwsp or any construct specifiable using CSS.  Specifically, it overrides white-space:

&quot;&quot;&quot;
The wbr element is expected to override the &apos;white-space&apos; property and always provide a line-breaking opportunity.
&quot;&quot;&quot;
http://www.whatwg.org/specs/web-apps/current-work/multipage/rendering.html#phrasing-content-1

*** This bug has been marked as a duplicate of bug 10342 ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>50632</commentid>
    <comment_count>7</comment_count>
    <who name="Leif Halvard Silli">xn--mlform-iua</who>
    <bug_when>2011-07-04 05:56:55 +0000</bug_when>
    <thetext>(In reply to comment #6)
&gt; Use-cases were presented by Maciej in bug 9350, 

Bug 9350 has been reopened.

&gt; where he pointed out that its
&gt; behavior does not match zwsp or any construct specifiable using CSS. 
&gt; Specifically, it overrides white-space:
&gt; 
&gt; &quot;&quot;&quot;
&gt; The wbr element is expected to override the &apos;white-space&apos; property and always
&gt; provide a line-breaking opportunity.
&gt; &quot;&quot;&quot;

These argumetns have been questioned in 8th comment of Bug 9350: http://www.w3.org/Bugs/Public/show_bug.cgi?id=9350#c8

&gt; http://www.whatwg.org/specs/web-apps/current-work/multipage/rendering.html#phrasing-content-1
&gt; 
&gt; *** This bug has been marked as a duplicate of bug 10342 ***

Obsoletation isn&apos;t enough. Parser support for &lt;wbr&gt; should be delegated to quirks-mode. Thus, this bug has been renamed to: &quot;Delagate &lt;wbr&gt; support to quirks-mode - make it have zero effect in no-quirks and almost-standards&quot;.

JUSTIFICATION for delagating it to quirks-mode: 

* &lt;wbr&gt; is conceptually very unclear and misunderstood. There is no unique usecase.
* no single browser implements it in sane way - they all differ
   See: http://www.w3.org/Bugs/Public/show_bug.cgi?id=9711#c2
* IE has already delagated support to Quirks-Mode only.
* Making &lt;wbr&gt; have zero effect in standards mode is pretty risk free: Due to the fact that no browser really implements &lt;wbr&gt; in full,  the text levels effects (that is: the effects on searching, selection, doubleclicking, clipboard copying) are in some cases zero and in other cases close to zero. 

For more arguments, see my comments in the bugs that I have made this bug dependent on.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>50743</commentid>
    <comment_count>8</comment_count>
    <who name="Aryeh Gregor">ayg</who>
    <bug_when>2011-07-06 19:53:11 +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: Quirks mode is evil -- it makes the platform significantly more confusing and complicated, both for authors and implementers.  We want to keep the differences between quirks and standards to an absolute minimum.  The only grounds for standardizing quirks are if they have to be quirks for web compat, or (theoretically) if the behavior is extremely horrible but we can&apos;t get rid of it completely but we could get away with making it a quirk.

In this case, if we don&apos;t want support for &lt;wbr&gt;, we can remove support entirely.  As you point out, compat is not an insurmountable issue here, since browsers don&apos;t consistently support it anyway.  Thus we should get rid of it if we don&apos;t want it, and keep it in all modes if we do.  Making it quirks-only is the worst of all worlds.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>52766</commentid>
    <comment_count>9</comment_count>
    <who name="Michael[tm] Smith">mike</who>
    <bug_when>2011-08-04 05:04:05 +0000</bug_when>
    <thetext>mass-moved component to LC1</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>