Source code
Revision control
Copy as Markdown
Other Tools
Test Info:
- This WPT test may be referenced by the following Test IDs:
- /html/semantics/forms/the-form-element/form-elements-interfaces-01.html - WPT Dashboard Interop Dashboard
<!DOCTYPE html>
<title>form.elements: interfaces</title>
<link rel="author" title="Ms2ger" href="mailto:ms2ger@gmail.com">
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<div id="log"></div>
<script>
test(function() {
var form = document.createElement("form");
["HTMLFormControlsCollection", "HTMLCollection"].forEach(function(i) {
test(function() {
assert_true(i in window, "Interface should exist")
assert_true(form.elements instanceof window[i],
"elements should implement the interface")
}, "Testing interface " + i)
})
})
</script>