3 <meta http-equiv=
"content-type" content=
"text/html; charset=UTF-8">
5 <script src=
"../../resources/js-test.js"> </script>
7 window
.jsTestIsAsync
= true;
10 document
.forms
.f
.submit();
13 <body onload=
"test()">
14 <p>Test that when dirname attribute is specified then it is added in submission body.
</p>
17 <form action=
"#action" method=
"GET" name=
"f">
19 <input type=text
name=
"comment" dirname=
"rtlAncestor.dir" required
>
21 <input type=text
name=
"autoAncestor" dirname=
"autoAncestor.dir" value=
"שלום">
22 <p><button name=
"mode" type=submit
value=
"add">Post Comment
</button></p>
27 <div id=
"console"></div>
30 if (document
.location
.href
.match('\\?')) {
31 shouldBeTrue('document.location.search.indexOf("rtlAncestor.dir=rtl") != -1');
32 shouldBeTrue('document.location.search.indexOf("autoAncestor.dir=ltr") != -1');
36 successfullyParsed
= true;