12011-11-14 Rakesh KN <rakesh.kn@motorola.com>
2
3 Need support for dirname attribute
4 https://bugs.webkit.org/show_bug.cgi?id=65542
5
6 Reviewed by NOBODY (OOPS!).
7
8 Implemented 'dirname' form attribute.
9
10 Tests: fast/forms/form-dirname-attribute.html
11 fast/forms/submit-form-with-dirname-attribute-with-ancestor-dir-attribute.html
12 fast/forms/submit-form-with-dirname-attribute-with-nonhtml-ancestor.html
13 fast/forms/submit-form-with-dirname-attribute.html
14
15 * html/HTMLAttributeNames.in:
16 Added "dirname" attribute.
17 * html/HTMLInputElement.idl:
18 Add "dirName" property to HTMLInputElement interface.
19 * html/HTMLTextAreaElement.cpp:
20 (WebCore::HTMLTextAreaElement::appendFormData):
21 Append dirname form data.
22 * html/HTMLTextAreaElement.idl:
23 Add "dirName" property to HTMLTextAreaElement interface.
24 * html/HTMLTextFormControlElement.cpp:
25 (WebCore::parentHTMLElement):
26 Helper function which returns only HTML parent element.
27 (WebCore::HTMLTextFormControlElement::directionForFormData):
28 Helper function for finding directionality of the Element.
29 * html/HTMLTextFormControlElement.h:
30 Helper function for finding directionality of the Element.
31 * html/TextFieldInputType.cpp:
32 (WebCore::TextFieldInputType::appendFormData):
33 Append dirname form data.
34 * html/TextFieldInputType.h:
35 Append dirname form data.
36