blob: 4be89cff4faf52d9b4dd5735e121529eb1bf1b5a [file] [log] [blame]
Tests form.elements is invalidated when input element's form attribute is changed.
On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
collection = document.getElementById('someForm').elements;
PASS collection.length is 1
PASS collection.length; input.setAttribute('form', 'otherForm'); collection.length is 0
PASS collection.length; input.setAttribute('form', 'someForm'); collection.length is 1