Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / forms / elements-invalidate-on-form-attribute-invalidation.html
blob13fa69e23213b0e433cff83a4a58dc30b10c0a4f
1 <!DOCTYPE html>
2 <html>
3 <body>
4 <div id="container">
5 <form id="someForm"></form>
6 <input type="text" name="someName" form="someForm">
7 </div>
8 <script src="../../resources/js-test.js"></script>
9 <script>
11 description("Tests form.elements is invalidated when input element's form attribute is changed.");
13 var input = document.querySelector('input');
14 var collection;
15 evalAndLog("collection = document.getElementById('someForm').elements;");
16 shouldBe("collection.length", "1");
17 shouldBe("collection.length; input.setAttribute('form', 'otherForm'); collection.length", "0");
18 shouldBe("collection.length; input.setAttribute('form', 'someForm'); collection.length", "1");
20 container.style.display = 'none';
22 </script>
23 </body>
24 </html>