<?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>10819</bug_id>
          
          <creation_ts>2010-09-29 12:56:48 +0000</creation_ts>
          <short_desc>i18n comment 15 : option element should support the dir attribute and be displayed accordingly both in the dropdown and after being chosen</short_desc>
          <delta_ts>2011-01-22 20:32:57 +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>pre-LC1 HTML5 spec (editor: Ian Hickson)</component>
          <version>unspecified</version>
          <rep_platform>PC</rep_platform>
          <op_sys>Windows XP</op_sys>
          <bug_status>CLOSED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="i18n bidi group">public-i18n-bidi</reporter>
          <assigned_to name="Ian &apos;Hixie&apos; Hickson">ian</assigned_to>
          <cc>aharon.lists.lanin</cc>
    
    <cc>ayg</cc>
    
    <cc>ian</cc>
    
    <cc>mike</cc>
    
    <cc>public-html-admin</cc>
    
    <cc>public-html-wg-issue-tracking</cc>
    
    <cc>public-i18n-bidi</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>39949</commentid>
    <comment_count>0</comment_count>
    <who name="i18n bidi group">public-i18n-bidi</who>
    <bug_when>2010-09-29 12:56:48 +0000</bug_when>
    <thetext>Comment from the i18n review of:
http://dev.w3.org/html5/spec/

Comment 15
At http://www.w3.org/International/reviews/html5-bidi/
Editorial/substantive: S
Tracked by: AL

Location in reviewed document:
undefined [http://dev.w3.org/html5/spec/spec.html#contents]

Comment:This is a part of the proposals made by the &quot;Additional Requirements for Bidi in HTML&quot; W3C First Public Working Draft. For a full description of the use cases, please see 
http://www.w3.org/International/docs/html-bidi-requirements/#option [http://www.w3.org/International/docs/html-bidi-requirements/#option]
. Here is the proposal made there:

The HTML specification should explicitly state that the &lt;option&gt; element&apos;s computed direction will take its dir attribute (explicit or inherited) into account, and will be used to display the option&apos;s text in both the dropdown and after being chosen.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>40798</commentid>
    <comment_count>1</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2010-10-07 19:47:46 +0000</bug_when>
    <thetext>This seems to be the same as bug 10820. Please reopen and clarify the issue if this is incorrect.

*** This bug has been marked as a duplicate of bug 10820 ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>41267</commentid>
    <comment_count>2</comment_count>
    <who name="Aharon Lanin">aharon.lists.lanin</who>
    <bug_when>2010-10-13 20:50:54 +0000</bug_when>
    <thetext>This is talking about direction.  Bug 10820 is talking about alignment. The two are distinct. One can have dir=ltr on an &lt;option&gt; (e.g. &quot;mamma mia!&quot;, so it does not get displayed as &quot;!mamma mia&quot; in an RTL page) and yet have text-align:right, since one wants it to line up with the other options in the select. Both need to be obeyed when displaying the option - both before and after it has been selected.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>41270</commentid>
    <comment_count>3</comment_count>
    <who name="Aharon Lanin">aharon.lists.lanin</who>
    <bug_when>2010-10-13 22:32:16 +0000</bug_when>
    <thetext>(In reply to comment #2)
&gt; This is talking about direction.  Bug 10820 is talking about alignment. The two
&gt; are distinct. One can have dir=ltr on an &lt;option&gt; (e.g. &quot;mamma mia!&quot;, so it
&gt; does not get displayed as &quot;!mamma mia&quot; in an RTL page) and yet have
&gt; text-align:right, since one wants it to line up with the other options in the
&gt; select. Both need to be obeyed when displaying the option - both before and
&gt; after it has been selected.

Currently, no browser listens to the text-align on an &lt;option&gt; (or a &lt;select&gt;, for that matter). Although bug 10820 used to demand that this change, I have modified it to no longer do so.

On the other hand, I still very much want the direction (e.g. as set by the dir attribute) on an &lt;option&gt; to be obeyed, both before and after it has been selected. Currently this is only the case in Firefox.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>41330</commentid>
    <comment_count>4</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2010-10-14 09:31:34 +0000</bug_when>
    <thetext>Oh, my bad. So this is asking for the same clarification as in bug 10818, but for &lt;option&gt; text rather than for title=&quot;&quot; and alt=&quot;&quot;?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>41441</commentid>
    <comment_count>5</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2010-10-15 21:52:45 +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: Partially Accepted
Change Description: see diff given below
Rationale: I&apos;ve added a section to cover this kind of issue in general. There doesn&apos;t seem to be a need to specifically list the dozens of ways that text can end up in native UI, so I haven&apos;t listed specifics. I&apos;d be happy to add examples if that would help; contact me on IRC if you would like examples.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>41442</commentid>
    <comment_count>6</comment_count>
    <who name="">contributor</who>
    <bug_when>2010-10-15 21:53:12 +0000</bug_when>
    <thetext>Checked in as WHATWG revision r5637.
Check-in comment: clarify that directionality affects native UI
http://html5.org/tools/web-apps-tracker?from=5636&amp;to=5637</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>42050</commentid>
    <comment_count>7</comment_count>
    <who name="Aharon Lanin">aharon.lists.lanin</who>
    <bug_when>2010-11-03 16:42:44 +0000</bug_when>
    <thetext>(In reply to comment #5)
&gt; Status: Partially Accepted
&gt; Change Description: see diff given below
&gt; Rationale: I&apos;ve added a section to cover this kind of issue in general. There
&gt; doesn&apos;t seem to be a need to specifically list the dozens of ways that text can
&gt; end up in native UI, so I haven&apos;t listed specifics. I&apos;d be happy to add
&gt; examples if that would help; contact me on IRC if you would like examples.

Sorry, but I am unsure how to contact you on IRC.

The diff looks great! However, I think that an example clarifying the situation with option would be particularly in order, since the situation there is confused by the fact that the option&apos;s text is displayed as &quot;the value&quot; of the select after it has been chosen, and the select&apos;s dir can go the other way. Firefox and Chrome make that mistake. Thus, I would suggest adding something like the following immediately after the text added by the diff:

&apos;For example, the &quot;HTML!&quot; in &quot;&lt;div dir=rtl&gt;...&lt;select&gt;&lt;option dir=ltr&gt;HTML!&lt;/option&gt;&lt;/select&gt;...&lt;/div&gt;&quot; should be shown correctly in LTR (not garbled as &quot;!HTML&quot; in RTL) both before and after being selected.&apos;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>42086</commentid>
    <comment_count>8</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2010-11-03 23:13:44 +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: Accepted
Change Description: see diff given below
Rationale: Concurred with reporter&apos;s comments.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>42089</commentid>
    <comment_count>9</comment_count>
    <who name="Aharon Lanin">aharon.lists.lanin</who>
    <bug_when>2010-11-03 23:43:32 +0000</bug_when>
    <thetext>contributor@whatwg.org says (2010-11-03 23:14:20 UTC):
Checked in as WHATWG revision r5668.
Check-in comment: Added example of select directionality issue
http://html5.org/tools/web-apps-tracker?from=5667&amp;to=5668</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>42090</commentid>
    <comment_count>10</comment_count>
    <who name="Aharon Lanin">aharon.lists.lanin</who>
    <bug_when>2010-11-03 23:47:08 +0000</bug_when>
    <thetext>Great example, but I think you accidentally put it in the wrong part of the spec.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>42104</commentid>
    <comment_count>11</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2010-11-04 07:04:35 +0000</bug_when>
    <thetext>Where did you expect it to be?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>42118</commentid>
    <comment_count>12</comment_count>
    <who name="Aharon Lanin">aharon.lists.lanin</who>
    <bug_when>2010-11-04 13:14:52 +0000</bug_when>
    <thetext>(In reply to comment #11)

I had expected it to be right after the main part of the clarification that was added in &lt;http://html5.org/tools/web-apps-tracker?from=5636&amp;to=5637&gt;. You seem to have added it in a different area entirely, some 1000 lines earlier.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>42154</commentid>
    <comment_count>13</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2010-11-05 00:57:15 +0000</bug_when>
    <thetext>As far as I can tell, it&apos;s added to the same section. If you&apos;re looking at line numbers in the diff, you should ignored those, the file undergoes a _lot_ of churn and sections move up and down a lot as a result.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>42244</commentid>
    <comment_count>14</comment_count>
    <who name="Aharon Lanin">aharon.lists.lanin</who>
    <bug_when>2010-11-08 10:10:06 +0000</bug_when>
    <thetext>(In reply to comment #13)
&gt; As far as I can tell, it&apos;s added to the same section. If you&apos;re looking at line
&gt; numbers in the diff, you should ignored those, the file undergoes a _lot_ of
&gt; churn and sections move up and down a lot as a result.

Part of what threw me off was the sentence that intervenes between the definition and the example, i.e. &quot;Text from scripts (e.g. the argument to window.alert()) is expected to be rendered as a separate bidirectional algorithm paragraph.&quot; That is a separate rule that has nothing to do with the example, and ideally should come after the example. (That sentence also has issues of its own that I will be writing about under bug 10827, to fix which it was added.)</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>