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/form-control-infrastructure/association.window.html - WPT Dashboard Interop Dashboard
test(() => {
const form = document.createElement("form"),
input = document.createElement("input");
form.appendChild(input);
assert_equals(input.form, form);
}, "Ensure input and form get associated when not in a document");