diff options
Diffstat (limited to 'testing/web-platform/tests/html/semantics/forms/the-form-element/form-elements-sameobject.html')
-rw-r--r-- | testing/web-platform/tests/html/semantics/forms/the-form-element/form-elements-sameobject.html | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/testing/web-platform/tests/html/semantics/forms/the-form-element/form-elements-sameobject.html b/testing/web-platform/tests/html/semantics/forms/the-form-element/form-elements-sameobject.html new file mode 100644 index 000000000..d1ebac07f --- /dev/null +++ b/testing/web-platform/tests/html/semantics/forms/the-form-element/form-elements-sameobject.html @@ -0,0 +1,20 @@ +<!doctype html> +<meta charset="utf-8"> +<title>Testing [SameObject] on the 'elements' attribute on the 'form' element</title> +<script src="/resources/testharness.js"></script> +<script src="/resources/testharnessreport.js"></script> +<div id="log"></div> + +<form> + <input> +</form> + +<script> +test(function() { + var form = document.querySelector('form'); + var elements = form.elements; + assert_true(elements === form.elements); + form.appendChild(document.createElement('input')); + assert_true(elements === form.elements); +}, "[SameObject] should apply to 'elements' attr on <form>"); +</script> |