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 dir attribute is specified for non html element, it is not considered for dirname attribute value in submission body.</p>
15 <svg xmlns="http://www.w3.org/2000/svg" width="100%" height="100%" viewBox="0 0 400 400" dir="rtl">
17 <form action="#action" method="GET" name="f">
18 <input type=text name="nonHtmlAncestor" dirname="nonHtmlAncestor.dir">
19 <p><button name="mode" type=submit value="add">Post Comment</button></p>
23 <div id="console"></div>
26 if (document.location.href.match('\\?')) {
27 shouldBeTrue('document.location.search.indexOf("nonHtmlAncestor.dir=ltr") != -1');
31 successfullyParsed = true;