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 23054 - Input element should have css rules for dir=auto
Summary: Input element should have css rules for dir=auto
Status: RESOLVED FIXED
Alias: None
Product: HTML WG
Classification: Unclassified
Component: HTML5 spec (show other bugs)
Version: unspecified
Hardware: PC All
: P2 normal
Target Milestone: ---
Assignee: This bug has no owner yet - up for the taking
QA Contact: HTML WG Bugzilla archive list
URL:
Whiteboard:
Keywords: CR
Depends on:
Blocks:
 
Reported: 2013-08-23 22:56 UTC by Igor Oliveira
Modified: 2013-09-03 11:45 UTC (History)
5 users (show)

See Also:


Attachments

Description Igor Oliveira 2013-08-23 22:56:47 UTC
In the dir attribute spec[1], textarea and input(with type attribute is in the Text, Search, Telephone, URL, or E-mail state) elements have the same behavior:

"If the element's value contains a character of bidirectional character type AL or R, and there is no character of bidirectional character type L anywhere before it in the element's value, then the directionality of the element is 'rtl'. [BIDI]"

However differently from textarea, input element does not have any css rule for bidirectional text[2]. The textarea rule is:

textarea[dir=auto i]{ unicode-bidi: plaintext; }

[1] http://www.w3.org/html/wg/drafts/html/master/dom.html#the-dir-attribute
[2] http://www.w3.org/html/wg/drafts/html/master/Overview.html#bidirectional-text
Comment 1 Robin Berjon 2013-09-03 11:45:45 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: Added the style rule.
Rationale: Matches description in specification body.

https://github.com/w3c/html/commit/be40dddd14ac8d80a5fcde344dd9a443f9dc8b60