blob: 90758955cb9790fb082a2de0097eee0315c48a95 [file] [log] [blame]
This is a testharness.js-based test.
PASS Forms should not have an item method
PASS Forms should not have a namedItem method
PASS Name for a single element should work
PASS Calling item() on the NodeList returned from the named getter should work
PASS Indexed getter on the NodeList returned from the named getter should work
PASS Invoking a legacycaller on the NodeList returned from the named getter should not work
PASS All listed elements except input type=image should be present in the form
PASS Named elements should override builtins
PASS Named items outside the form should not be returned (no children)
PASS Named items outside the form should not be returned (one child)
PASS The form attribute should be taken into account for named getters (single element)
PASS The form attribute should be taken into account for named getters (multiple elements)
PASS Input should only be a named property on the innermost form that contains it
FAIL Trying to set an expando that would shadow an already-existing named property assert_throws_js: function "function() {
"use strict";
delete form["l1"];
}" did not throw
FAIL Trying to set an expando that shadows a named property that gets added later assert_equals: expected (number) 5 but got (object) Element node <input name="new-name"></input>
FAIL Trying to set a non-configurable expando that shadows a named property that gets added later assert_equals: expected (number) 5 but got (object) Element node <input name="new-name2"></input>
PASS Past names map should work correctly
Harness: the test ran to completion.