[Webkit-unassigned] [Bug 65542] New: Need support for dirname attribute
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Tue Aug 2 08:14:20 PDT 2011
https://bugs.webkit.org/show_bug.cgi?id=65542
Summary: Need support for dirname attribute
Product: WebKit
Version: 528+ (Nightly build)
Platform: All
OS/Version: All
Status: UNCONFIRMED
Severity: Normal
Priority: P2
Component: HTML DOM
AssignedTo: webkit-unassigned at lists.webkit.org
ReportedBy: aharon at google.com
CC: yael.aharon at nokia.com, playmobil at google.com,
leviw at chromium.org
Created an attachment (id=102654)
--> (https://bugs.webkit.org/attachment.cgi?id=102654&action=review)
test case
HTML5 added a new attribute for <input> and <textarea>, dirname (http://dev.w3.org/html5/spec/Overview.html#the-dirname-attribute):
"A form control dirname attribute on a form control element enables the submission of the directionality of the element, and gives the name of the field that contains this value during form submission. If such an attribute is specified, its value must not be the empty string."
Please note that the directionality is always either "ltr" or "rtl". It is never "auto" or "" or null.
Example:
<form action="addcomment.cgi" method=post>
<p><label>Comment: <input type=text name="comment" dirname="comment.dir" required></label></p>
<p><button name="mode" type=submit value="add">Post Comment</button></p>
</form>
When the user submits the form, the user agent includes three fields, one called "comment", one called "comment.dir", and one called "mode"; so if the user types "Hello", the submission body might be something like:
comment=Hello&comment.dir=ltr&mode=add
If the user manually switches to a right-to-left writing direction and enters "مرحبًا", the submission body might be something like:
comment=%D9%85%D8%B1%D8%AD%D8%A8%D9%8B%D8%A7&comment.dir=rtl&mode=add
--
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
More information about the webkit-unassigned
mailing list