Summary

Harness status: OK

Found 99 tests

Details

ResultTest NameMessage
PassTests for parser inserted controls
Asserts run
Pass
assert_equals(Element node <form id="f2">         <input id="i1">         <input id=..., Element node <form id="f2">         <input id="i1">         <input id=..., "i1 must be associated with f2 by the parser")
    at Test.<anonymous> ( /html/semantics/forms/form-control-infrastructure/form_attribute.html:23:11)
Pass
assert_equals(Element node <form id="f1"></form>, Element node <form id="f1"></form>, "i2 is not associated with f2 by the parser since it has the form attribute set to f1")
    at Test.<anonymous> ( /html/semantics/forms/form-control-infrastructure/form_attribute.html:25:11)
Pass
assert_equals(Element node <form id="f1"><input id="i1"></form>, Element node <form id="f1"><input id="i1"></form>, "i1's form owner must be reset when parent changes")
    at Test.<anonymous> ( /html/semantics/forms/form-control-infrastructure/form_attribute.html:32:11)
Pass
assert_equals(Element node <form id="f1"><input id="i1"></form>, Element node <form id="f1"><input id="i1"></form>, "i3's form owner must be reset when the formattribute is set")
    at Test.<anonymous> ( /html/semantics/forms/form-control-infrastructure/form_attribute.html:34:11)
Pass
assert_equals(Element node <form id="f1"><input id="i1"></form>, Element node <form id="f1"><input id="i1"></form>)
    at Test.<anonymous> ( /html/semantics/forms/form-control-infrastructure/form_attribute.html:38:11)
Pass[BUTTON] Basic form association - control with no form attribute is associated with ancestor
Asserts run
Pass
assert_equals(Element node <form id="form1"><button></button></form>, Element node <form id="form1"><button></button></form>)
    at HTMLButtonElement.<anonymous> ( /html/semantics/forms/form-control-infrastructure/form_attribute.html:82:11)
Pass[BUTTON] Form owner is reset to null when control's form attribute is set to an ID that does not exist in the document
Asserts run
Pass
assert_equals(Element node <form id="form1"><button form="form1"></button></form>, Element node <form id="form1"><button form="form1"></button></form>)
    at HTMLButtonElement.<anonymous> ( /html/semantics/forms/form-control-infrastructure/form_attribute.html:88:11)
Pass
assert_equals(null, null)
    at HTMLButtonElement.<anonymous> ( /html/semantics/forms/form-control-infrastructure/form_attribute.html:91:11)
Pass[BUTTON] Control whose form attribute is an empty string has no form owner
Asserts run
Pass
assert_equals(null, null)
    at HTMLButtonElement.<anonymous> ( /html/semantics/forms/form-control-infrastructure/form_attribute.html:98:11)
Pass[BUTTON] Control whose form attribute is an empty string has no form owner even when form with empty attribute is present
Asserts run
Pass
assert_equals(null, null)
    at HTMLButtonElement.<anonymous> ( /html/semantics/forms/form-control-infrastructure/form_attribute.html:105:11)
Pass[BUTTON] Control's form attribute must be a case sensitive match for the form's id
Asserts run
Pass
assert_equals(null, null)
    at HTMLButtonElement.<anonymous> ( /html/semantics/forms/form-control-infrastructure/form_attribute.html:113:11)
Pass[BUTTON] Setting the form attribute of a control to the id of a non-ancestor form works
Asserts run
Pass
assert_equals(Element node <form id="form1"><button></button></form>, Element node <form id="form1"><button></button></form>)
    at HTMLButtonElement.<anonymous> ( /html/semantics/forms/form-control-infrastructure/form_attribute.html:118:11)
Pass
assert_equals(Element node <form id="form2"></form>, Element node <form id="form2"></form>)
    at HTMLButtonElement.<anonymous> ( /html/semantics/forms/form-control-infrastructure/form_attribute.html:121:11)
Pass[BUTTON] Removing form id from a control resets the form owner to ancestor
Asserts run
Pass
assert_equals(Element node <form id="form1"></form>, Element node <form id="form1"></form>)
    at HTMLButtonElement.<anonymous> ( /html/semantics/forms/form-control-infrastructure/form_attribute.html:128:11)
Pass
assert_equals(Element node <form id="form2"><button></button></form>, Element node <form id="form2"><button></button></form>)
    at HTMLButtonElement.<anonymous> ( /html/semantics/forms/form-control-infrastructure/form_attribute.html:131:11)
Pass[BUTTON] Removing the form owner of a control with form attribute resets the form owner to null
Asserts run
Pass
assert_equals(Element node <form id="form1"></form>, Element node <form id="form1"></form>)
    at HTMLButtonElement.<anonymous> ( /html/semantics/forms/form-control-infrastructure/form_attribute.html:138:11)
Pass
assert_equals(null, null)
    at HTMLButtonElement.<anonymous> ( /html/semantics/forms/form-control-infrastructure/form_attribute.html:142:11)
Pass[BUTTON] Changing form attibute of control resets form owner to correct form
Asserts run
Pass
assert_equals(Element node <form id="form3"><button></button></form>, Element node <form id="form3"><button></button></form>)
    at HTMLButtonElement.<anonymous> ( /html/semantics/forms/form-control-infrastructure/form_attribute.html:151:11)
Pass
assert_equals(Element node <form id="form2"></form>, Element node <form id="form2"></form>)
    at HTMLButtonElement.<anonymous> ( /html/semantics/forms/form-control-infrastructure/form_attribute.html:154:11)
Pass
assert_equals(Element node <form id="form1"></form>, Element node <form id="form1"></form>)
    at HTMLButtonElement.<anonymous> ( /html/semantics/forms/form-control-infrastructure/form_attribute.html:157:11)
Pass[BUTTON] Moving a control with form attribute within the document does not change the form owner
Asserts run
Pass
assert_equals(Element node <form id="form1"></form>, Element node <form id="form1"></form>)
    at HTMLButtonElement.<anonymous> ( /html/semantics/forms/form-control-infrastructure/form_attribute.html:167:11)
Pass
assert_equals(Element node <form id="form1"><button form="form1"></button></form>, Element node <form id="form1"><button form="form1"></button></form>)
    at HTMLButtonElement.<anonymous> ( /html/semantics/forms/form-control-infrastructure/form_attribute.html:170:11)
Pass
assert_equals(Element node <form id="form1"></form>, Element node <form id="form1"></form>)
    at HTMLButtonElement.<anonymous> ( /html/semantics/forms/form-control-infrastructure/form_attribute.html:173:11)
Pass[BUTTON] When the id of a non-ancestor form changes from not being a match for the form attribute to being a match, the control's form owner is reset
Asserts run
Pass
assert_equals(null, null)
    at HTMLButtonElement.<anonymous> ( /html/semantics/forms/form-control-infrastructure/form_attribute.html:181:11)
Pass
assert_equals(Element node <form id="form1"></form>, Element node <form id="form1"></form>)
    at HTMLButtonElement.<anonymous> ( /html/semantics/forms/form-control-infrastructure/form_attribute.html:184:11)
Pass[BUTTON] When form element with same ID as the control's form attribute is inserted earlier in tree order, the form owner is changed to the inserted form
Asserts run
Pass
assert_equals(Element node <form id="form1"><button form="form1"></button></form>, Element node <form id="form1"><button form="form1"></button></form>)
    at HTMLButtonElement.<anonymous> ( /html/semantics/forms/form-control-infrastructure/form_attribute.html:191:11)
Pass
assert_equals(Element node <form id="form1"></form>, Element node <form id="form1"></form>)
    at HTMLButtonElement.<anonymous> ( /html/semantics/forms/form-control-infrastructure/form_attribute.html:195:11)
Pass
assert_equals(Element node <form id="form1"><button form="form1"></button></form>, Element node <form id="form1"><button form="form1"></button></form>)
    at HTMLButtonElement.<anonymous> ( /html/semantics/forms/form-control-infrastructure/form_attribute.html:198:11)
Pass
assert_equals(Element node <form id="form1"><button form="form1"></button></form>, Element node <form id="form1"><button form="form1"></button></form>)
    at HTMLButtonElement.<anonymous> ( /html/semantics/forms/form-control-infrastructure/form_attribute.html:201:11)
Pass[BUTTON] When non-form element with same ID as the control's form attribute is inserted earlier in tree order, the control does not have a form owner
Asserts run
Pass
assert_equals(Element node <form id="form1"></form>, Element node <form id="form1"></form>)
    at HTMLButtonElement.<anonymous> ( /html/semantics/forms/form-control-infrastructure/form_attribute.html:208:11)
Pass
assert_equals(null, null)
    at HTMLButtonElement.<anonymous> ( /html/semantics/forms/form-control-infrastructure/form_attribute.html:213:11)
Pass
assert_equals(Element node <form id="form1"></form>, Element node <form id="form1"></form>)
    at HTMLButtonElement.<anonymous> ( /html/semantics/forms/form-control-infrastructure/form_attribute.html:216:11)
Pass[BUTTON] A control that is not in the document but has the form attribute set is associated with the nearest ancestor form if one exists
Asserts run
Pass
assert_equals(Element node <form id="form1"><button form="form1"></button></form>, Element node <form id="form1"><button form="form1"></button></form>)
    at HTMLButtonElement.<anonymous> ( /html/semantics/forms/form-control-infrastructure/form_attribute.html:223:11)
Pass
assert_equals(Element node <form id="form1"><button form="form1"></button></form>, Element node <form id="form1"><button form="form1"></button></form>)
    at HTMLButtonElement.<anonymous> ( /html/semantics/forms/form-control-infrastructure/form_attribute.html:226:11)
Pass[FIELDSET] Basic form association - control with no form attribute is associated with ancestor
Asserts run
Pass
assert_equals(Element node <form id="form1"><fieldset></fieldset></form>, Element node <form id="form1"><fieldset></fieldset></form>)
    at HTMLFieldSetElement.<anonymous> ( /html/semantics/forms/form-control-infrastructure/form_attribute.html:82:11)
Pass[FIELDSET] Form owner is reset to null when control's form attribute is set to an ID that does not exist in the document
Asserts run
Pass
assert_equals(Element node <form id="form1"><fieldset form="form1"></fieldset></form>, Element node <form id="form1"><fieldset form="form1"></fieldset></form>)
    at HTMLFieldSetElement.<anonymous> ( /html/semantics/forms/form-control-infrastructure/form_attribute.html:88:11)
Pass
assert_equals(null, null)
    at HTMLFieldSetElement.<anonymous> ( /html/semantics/forms/form-control-infrastructure/form_attribute.html:91:11)
Pass[FIELDSET] Control whose form attribute is an empty string has no form owner
Asserts run
Pass
assert_equals(null, null)
    at HTMLFieldSetElement.<anonymous> ( /html/semantics/forms/form-control-infrastructure/form_attribute.html:98:11)
Pass[FIELDSET] Control whose form attribute is an empty string has no form owner even when form with empty attribute is present
Asserts run
Pass
assert_equals(null, null)
    at HTMLFieldSetElement.<anonymous> ( /html/semantics/forms/form-control-infrastructure/form_attribute.html:105:11)
Pass[FIELDSET] Control's form attribute must be a case sensitive match for the form's id
Asserts run
Pass
assert_equals(null, null)
    at HTMLFieldSetElement.<anonymous> ( /html/semantics/forms/form-control-infrastructure/form_attribute.html:113:11)
Pass[FIELDSET] Setting the form attribute of a control to the id of a non-ancestor form works
Asserts run
Pass
assert_equals(Element node <form id="form1"><fieldset></fieldset></form>, Element node <form id="form1"><fieldset></fieldset></form>)
    at HTMLFieldSetElement.<anonymous> ( /html/semantics/forms/form-control-infrastructure/form_attribute.html:118:11)
Pass
assert_equals(Element node <form id="form2"></form>, Element node <form id="form2"></form>)
    at HTMLFieldSetElement.<anonymous> ( /html/semantics/forms/form-control-infrastructure/form_attribute.html:121:11)
Pass[FIELDSET] Removing form id from a control resets the form owner to ancestor
Asserts run
Pass
assert_equals(Element node <form id="form1"></form>, Element node <form id="form1"></form>)
    at HTMLFieldSetElement.<anonymous> ( /html/semantics/forms/form-control-infrastructure/form_attribute.html:128:11)
Pass
assert_equals(Element node <form id="form2"><fieldset></fieldset></form>, Element node <form id="form2"><fieldset></fieldset></form>)
    at HTMLFieldSetElement.<anonymous> ( /html/semantics/forms/form-control-infrastructure/form_attribute.html:131:11)
Pass[FIELDSET] Removing the form owner of a control with form attribute resets the form owner to null
Asserts run
Pass
assert_equals(Element node <form id="form1"></form>, Element node <form id="form1"></form>)
    at HTMLFieldSetElement.<anonymous> ( /html/semantics/forms/form-control-infrastructure/form_attribute.html:138:11)
Pass
assert_equals(null, null)
    at HTMLFieldSetElement.<anonymous> ( /html/semantics/forms/form-control-infrastructure/form_attribute.html:142:11)
Pass[FIELDSET] Changing form attibute of control resets form owner to correct form
Asserts run
Pass
assert_equals(Element node <form id="form3"><fieldset></fieldset></form>, Element node <form id="form3"><fieldset></fieldset></form>)
    at HTMLFieldSetElement.<anonymous> ( /html/semantics/forms/form-control-infrastructure/form_attribute.html:151:11)
Pass
assert_equals(Element node <form id="form2"></form>, Element node <form id="form2"></form>)
    at HTMLFieldSetElement.<anonymous> ( /html/semantics/forms/form-control-infrastructure/form_attribute.html:154:11)
Pass
assert_equals(Element node <form id="form1"></form>, Element node <form id="form1"></form>)
    at HTMLFieldSetElement.<anonymous> ( /html/semantics/forms/form-control-infrastructure/form_attribute.html:157:11)
Pass[FIELDSET] Moving a control with form attribute within the document does not change the form owner
Asserts run
Pass
assert_equals(Element node <form id="form1"></form>, Element node <form id="form1"></form>)
    at HTMLFieldSetElement.<anonymous> ( /html/semantics/forms/form-control-infrastructure/form_attribute.html:167:11)
Pass
assert_equals(Element node <form id="form1"><fieldset form="form1"></fieldset></form>, Element node <form id="form1"><fieldset form="form1"></fieldset></form>)
    at HTMLFieldSetElement.<anonymous> ( /html/semantics/forms/form-control-infrastructure/form_attribute.html:170:11)
Pass
assert_equals(Element node <form id="form1"></form>, Element node <form id="form1"></form>)
    at HTMLFieldSetElement.<anonymous> ( /html/semantics/forms/form-control-infrastructure/form_attribute.html:173:11)
Pass[FIELDSET] When the id of a non-ancestor form changes from not being a match for the form attribute to being a match, the control's form owner is reset
Asserts run
Pass
assert_equals(null, null)
    at HTMLFieldSetElement.<anonymous> ( /html/semantics/forms/form-control-infrastructure/form_attribute.html:181:11)
Pass
assert_equals(Element node <form id="form1"></form>, Element node <form id="form1"></form>)
    at HTMLFieldSetElement.<anonymous> ( /html/semantics/forms/form-control-infrastructure/form_attribute.html:184:11)
Pass[FIELDSET] When form element with same ID as the control's form attribute is inserted earlier in tree order, the form owner is changed to the inserted form
Asserts run
Pass
assert_equals(Element node <form id="form1"><fieldset form="form1"></fieldset></form>, Element node <form id="form1"><fieldset form="form1"></fieldset></form>)
    at HTMLFieldSetElement.<anonymous> ( /html/semantics/forms/form-control-infrastructure/form_attribute.html:191:11)
Pass
assert_equals(Element node <form id="form1"></form>, Element node <form id="form1"></form>)
    at HTMLFieldSetElement.<anonymous> ( /html/semantics/forms/form-control-infrastructure/form_attribute.html:195:11)
Pass
assert_equals(Element node <form id="form1"><fieldset form="form1"></fieldset></form>, Element node <form id="form1"><fieldset form="form1"></fieldset></form>)
    at HTMLFieldSetElement.<anonymous> ( /html/semantics/forms/form-control-infrastructure/form_attribute.html:198:11)
Pass
assert_equals(Element node <form id="form1"><fieldset form="form1"></fieldset></form>, Element node <form id="form1"><fieldset form="form1"></fieldset></form>)
    at HTMLFieldSetElement.<anonymous> ( /html/semantics/forms/form-control-infrastructure/form_attribute.html:201:11)
Pass[FIELDSET] When non-form element with same ID as the control's form attribute is inserted earlier in tree order, the control does not have a form owner
Asserts run
Pass
assert_equals(Element node <form id="form1"></form>, Element node <form id="form1"></form>)
    at HTMLFieldSetElement.<anonymous> ( /html/semantics/forms/form-control-infrastructure/form_attribute.html:208:11)
Pass
assert_equals(null, null)
    at HTMLFieldSetElement.<anonymous> ( /html/semantics/forms/form-control-infrastructure/form_attribute.html:213:11)
Pass
assert_equals(Element node <form id="form1"></form>, Element node <form id="form1"></form>)
    at HTMLFieldSetElement.<anonymous> ( /html/semantics/forms/form-control-infrastructure/form_attribute.html:216:11)
Pass[FIELDSET] A control that is not in the document but has the form attribute set is associated with the nearest ancestor form if one exists
Asserts run
Pass
assert_equals(Element node <form id="form1"><fieldset form="form1"></fieldset></form>, Element node <form id="form1"><fieldset form="form1"></fieldset></form>)
    at HTMLFieldSetElement.<anonymous> ( /html/semantics/forms/form-control-infrastructure/form_attribute.html:223:11)
Pass
assert_equals(Element node <form id="form1"><fieldset form="form1"></fieldset></form>, Element node <form id="form1"><fieldset form="form1"></fieldset></form>)
    at HTMLFieldSetElement.<anonymous> ( /html/semantics/forms/form-control-infrastructure/form_attribute.html:226:11)
Pass[INPUT] Basic form association - control with no form attribute is associated with ancestor
Asserts run
Pass
assert_equals(Element node <form id="form1"><input></form>, Element node <form id="form1"><input></form>)
    at HTMLInputElement.<anonymous> ( /html/semantics/forms/form-control-infrastructure/form_attribute.html:82:11)
Pass[INPUT] Form owner is reset to null when control's form attribute is set to an ID that does not exist in the document
Asserts run
Pass
assert_equals(Element node <form id="form1"><input form="form1"></form>, Element node <form id="form1"><input form="form1"></form>)
    at HTMLInputElement.<anonymous> ( /html/semantics/forms/form-control-infrastructure/form_attribute.html:88:11)
Pass
assert_equals(null, null)
    at HTMLInputElement.<anonymous> ( /html/semantics/forms/form-control-infrastructure/form_attribute.html:91:11)
Pass[INPUT] Control whose form attribute is an empty string has no form owner
Asserts run
Pass
assert_equals(null, null)
    at HTMLInputElement.<anonymous> ( /html/semantics/forms/form-control-infrastructure/form_attribute.html:98:11)
Pass[INPUT] Control whose form attribute is an empty string has no form owner even when form with empty attribute is present
Asserts run
Pass
assert_equals(null, null)
    at HTMLInputElement.<anonymous> ( /html/semantics/forms/form-control-infrastructure/form_attribute.html:105:11)
Pass[INPUT] Control's form attribute must be a case sensitive match for the form's id
Asserts run
Pass
assert_equals(null, null)
    at HTMLInputElement.<anonymous> ( /html/semantics/forms/form-control-infrastructure/form_attribute.html:113:11)
Pass[INPUT] Setting the form attribute of a control to the id of a non-ancestor form works
Asserts run
Pass
assert_equals(Element node <form id="form1"><input></form>, Element node <form id="form1"><input></form>)
    at HTMLInputElement.<anonymous> ( /html/semantics/forms/form-control-infrastructure/form_attribute.html:118:11)
Pass
assert_equals(Element node <form id="form2"></form>, Element node <form id="form2"></form>)
    at HTMLInputElement.<anonymous> ( /html/semantics/forms/form-control-infrastructure/form_attribute.html:121:11)
Pass[INPUT] Removing form id from a control resets the form owner to ancestor
Asserts run
Pass
assert_equals(Element node <form id="form1"></form>, Element node <form id="form1"></form>)
    at HTMLInputElement.<anonymous> ( /html/semantics/forms/form-control-infrastructure/form_attribute.html:128:11)
Pass
assert_equals(Element node <form id="form2"><input></form>, Element node <form id="form2"><input></form>)
    at HTMLInputElement.<anonymous> ( /html/semantics/forms/form-control-infrastructure/form_attribute.html:131:11)
Pass[INPUT] Removing the form owner of a control with form attribute resets the form owner to null
Asserts run
Pass
assert_equals(Element node <form id="form1"></form>, Element node <form id="form1"></form>)
    at HTMLInputElement.<anonymous> ( /html/semantics/forms/form-control-infrastructure/form_attribute.html:138:11)
Pass
assert_equals(null, null)
    at HTMLInputElement.<anonymous> ( /html/semantics/forms/form-control-infrastructure/form_attribute.html:142:11)
Pass[INPUT] Changing form attibute of control resets form owner to correct form
Asserts run
Pass
assert_equals(Element node <form id="form3"><input></form>, Element node <form id="form3"><input></form>)
    at HTMLInputElement.<anonymous> ( /html/semantics/forms/form-control-infrastructure/form_attribute.html:151:11)
Pass
assert_equals(Element node <form id="form2"></form>, Element node <form id="form2"></form>)
    at HTMLInputElement.<anonymous> ( /html/semantics/forms/form-control-infrastructure/form_attribute.html:154:11)
Pass
assert_equals(Element node <form id="form1"></form>, Element node <form id="form1"></form>)
    at HTMLInputElement.<anonymous> ( /html/semantics/forms/form-control-infrastructure/form_attribute.html:157:11)
Pass[INPUT] Moving a control with form attribute within the document does not change the form owner
Asserts run
Pass
assert_equals(Element node <form id="form1"></form>, Element node <form id="form1"></form>)
    at HTMLInputElement.<anonymous> ( /html/semantics/forms/form-control-infrastructure/form_attribute.html:167:11)
Pass
assert_equals(Element node <form id="form1"><input form="form1"></form>, Element node <form id="form1"><input form="form1"></form>)
    at HTMLInputElement.<anonymous> ( /html/semantics/forms/form-control-infrastructure/form_attribute.html:170:11)
Pass
assert_equals(Element node <form id="form1"></form>, Element node <form id="form1"></form>)
    at HTMLInputElement.<anonymous> ( /html/semantics/forms/form-control-infrastructure/form_attribute.html:173:11)
Pass[INPUT] When the id of a non-ancestor form changes from not being a match for the form attribute to being a match, the control's form owner is reset
Asserts run
Pass
assert_equals(null, null)
    at HTMLInputElement.<anonymous> ( /html/semantics/forms/form-control-infrastructure/form_attribute.html:181:11)
Pass
assert_equals(Element node <form id="form1"></form>, Element node <form id="form1"></form>)
    at HTMLInputElement.<anonymous> ( /html/semantics/forms/form-control-infrastructure/form_attribute.html:184:11)
Pass[INPUT] When form element with same ID as the control's form attribute is inserted earlier in tree order, the form owner is changed to the inserted form
Asserts run
Pass
assert_equals(Element node <form id="form1"><input form="form1"></form>, Element node <form id="form1"><input form="form1"></form>)
    at HTMLInputElement.<anonymous> ( /html/semantics/forms/form-control-infrastructure/form_attribute.html:191:11)
Pass
assert_equals(Element node <form id="form1"></form>, Element node <form id="form1"></form>)
    at HTMLInputElement.<anonymous> ( /html/semantics/forms/form-control-infrastructure/form_attribute.html:195:11)
Pass
assert_equals(Element node <form id="form1"><input form="form1"></form>, Element node <form id="form1"><input form="form1"></form>)
    at HTMLInputElement.<anonymous> ( /html/semantics/forms/form-control-infrastructure/form_attribute.html:198:11)
Pass
assert_equals(Element node <form id="form1"><input form="form1"></form>, Element node <form id="form1"><input form="form1"></form>)
    at HTMLInputElement.<anonymous> ( /html/semantics/forms/form-control-infrastructure/form_attribute.html:201:11)
Pass[INPUT] When non-form element with same ID as the control's form attribute is inserted earlier in tree order, the control does not have a form owner
Asserts run
Pass
assert_equals(Element node <form id="form1"></form>, Element node <form id="form1"></form>)
    at HTMLInputElement.<anonymous> ( /html/semantics/forms/form-control-infrastructure/form_attribute.html:208:11)
Pass
assert_equals(null, null)
    at HTMLInputElement.<anonymous> ( /html/semantics/forms/form-control-infrastructure/form_attribute.html:213:11)
Pass
assert_equals(Element node <form id="form1"></form>, Element node <form id="form1"></form>)
    at HTMLInputElement.<anonymous> ( /html/semantics/forms/form-control-infrastructure/form_attribute.html:216:11)
Pass[INPUT] A control that is not in the document but has the form attribute set is associated with the nearest ancestor form if one exists
Asserts run
Pass
assert_equals(Element node <form id="form1"><input form="form1"></form>, Element node <form id="form1"><input form="form1"></form>)
    at HTMLInputElement.<anonymous> ( /html/semantics/forms/form-control-infrastructure/form_attribute.html:223:11)
Pass
assert_equals(Element node <form id="form1"><input form="form1"></form>, Element node <form id="form1"><input form="form1"></form>)
    at HTMLInputElement.<anonymous> ( /html/semantics/forms/form-control-infrastructure/form_attribute.html:226:11)
Pass[OBJECT] Basic form association - control with no form attribute is associated with ancestor
Asserts run
Pass
assert_equals(Element node <form id="form1"><object></object></form>, Element node <form id="form1"><object></object></form>)
    at HTMLObjectElement.<anonymous> ( /html/semantics/forms/form-control-infrastructure/form_attribute.html:82:11)
Pass[OBJECT] Form owner is reset to null when control's form attribute is set to an ID that does not exist in the document
Asserts run
Pass
assert_equals(Element node <form id="form1"><object form="form1"></object></form>, Element node <form id="form1"><object form="form1"></object></form>)
    at HTMLObjectElement.<anonymous> ( /html/semantics/forms/form-control-infrastructure/form_attribute.html:88:11)
Pass
assert_equals(null, null)
    at HTMLObjectElement.<anonymous> ( /html/semantics/forms/form-control-infrastructure/form_attribute.html:91:11)
Pass[OBJECT] Control whose form attribute is an empty string has no form owner
Asserts run
Pass
assert_equals(null, null)
    at HTMLObjectElement.<anonymous> ( /html/semantics/forms/form-control-infrastructure/form_attribute.html:98:11)
Pass[OBJECT] Control whose form attribute is an empty string has no form owner even when form with empty attribute is present
Asserts run
Pass
assert_equals(null, null)
    at HTMLObjectElement.<anonymous> ( /html/semantics/forms/form-control-infrastructure/form_attribute.html:105:11)
Pass[OBJECT] Control's form attribute must be a case sensitive match for the form's id
Asserts run
Pass
assert_equals(null, null)
    at HTMLObjectElement.<anonymous> ( /html/semantics/forms/form-control-infrastructure/form_attribute.html:113:11)
Pass[OBJECT] Setting the form attribute of a control to the id of a non-ancestor form works
Asserts run
Pass
assert_equals(Element node <form id="form1"><object></object></form>, Element node <form id="form1"><object></object></form>)
    at HTMLObjectElement.<anonymous> ( /html/semantics/forms/form-control-infrastructure/form_attribute.html:118:11)
Pass
assert_equals(Element node <form id="form2"></form>, Element node <form id="form2"></form>)
    at HTMLObjectElement.<anonymous> ( /html/semantics/forms/form-control-infrastructure/form_attribute.html:121:11)
Pass[OBJECT] Removing form id from a control resets the form owner to ancestor
Asserts run
Pass
assert_equals(Element node <form id="form1"></form>, Element node <form id="form1"></form>)
    at HTMLObjectElement.<anonymous> ( /html/semantics/forms/form-control-infrastructure/form_attribute.html:128:11)
Pass
assert_equals(Element node <form id="form2"><object></object></form>, Element node <form id="form2"><object></object></form>)
    at HTMLObjectElement.<anonymous> ( /html/semantics/forms/form-control-infrastructure/form_attribute.html:131:11)
Pass[OBJECT] Removing the form owner of a control with form attribute resets the form owner to null
Asserts run
Pass
assert_equals(Element node <form id="form1"></form>, Element node <form id="form1"></form>)
    at HTMLObjectElement.<anonymous> ( /html/semantics/forms/form-control-infrastructure/form_attribute.html:138:11)
Pass
assert_equals(null, null)
    at HTMLObjectElement.<anonymous> ( /html/semantics/forms/form-control-infrastructure/form_attribute.html:142:11)
Pass[OBJECT] Changing form attibute of control resets form owner to correct form
Asserts run
Pass
assert_equals(Element node <form id="form3"><object></object></form>, Element node <form id="form3"><object></object></form>)
    at HTMLObjectElement.<anonymous> ( /html/semantics/forms/form-control-infrastructure/form_attribute.html:151:11)
Pass
assert_equals(Element node <form id="form2"></form>, Element node <form id="form2"></form>)
    at HTMLObjectElement.<anonymous> ( /html/semantics/forms/form-control-infrastructure/form_attribute.html:154:11)
Pass
assert_equals(Element node <form id="form1"></form>, Element node <form id="form1"></form>)
    at HTMLObjectElement.<anonymous> ( /html/semantics/forms/form-control-infrastructure/form_attribute.html:157:11)
Pass[OBJECT] Moving a control with form attribute within the document does not change the form owner
Asserts run
Pass
assert_equals(Element node <form id="form1"></form>, Element node <form id="form1"></form>)
    at HTMLObjectElement.<anonymous> ( /html/semantics/forms/form-control-infrastructure/form_attribute.html:167:11)
Pass
assert_equals(Element node <form id="form1"><object form="form1"></object></form>, Element node <form id="form1"><object form="form1"></object></form>)
    at HTMLObjectElement.<anonymous> ( /html/semantics/forms/form-control-infrastructure/form_attribute.html:170:11)
Pass
assert_equals(Element node <form id="form1"></form>, Element node <form id="form1"></form>)
    at HTMLObjectElement.<anonymous> ( /html/semantics/forms/form-control-infrastructure/form_attribute.html:173:11)
Pass[OBJECT] When the id of a non-ancestor form changes from not being a match for the form attribute to being a match, the control's form owner is reset
Asserts run
Pass
assert_equals(null, null)
    at HTMLObjectElement.<anonymous> ( /html/semantics/forms/form-control-infrastructure/form_attribute.html:181:11)
Pass
assert_equals(Element node <form id="form1"></form>, Element node <form id="form1"></form>)
    at HTMLObjectElement.<anonymous> ( /html/semantics/forms/form-control-infrastructure/form_attribute.html:184:11)
Pass[OBJECT] When form element with same ID as the control's form attribute is inserted earlier in tree order, the form owner is changed to the inserted form
Asserts run
Pass
assert_equals(Element node <form id="form1"><object form="form1"></object></form>, Element node <form id="form1"><object form="form1"></object></form>)
    at HTMLObjectElement.<anonymous> ( /html/semantics/forms/form-control-infrastructure/form_attribute.html:191:11)
Pass
assert_equals(Element node <form id="form1"></form>, Element node <form id="form1"></form>)
    at HTMLObjectElement.<anonymous> ( /html/semantics/forms/form-control-infrastructure/form_attribute.html:195:11)
Pass
assert_equals(Element node <form id="form1"><object form="form1"></object></form>, Element node <form id="form1"><object form="form1"></object></form>)
    at HTMLObjectElement.<anonymous> ( /html/semantics/forms/form-control-infrastructure/form_attribute.html:198:11)
Pass
assert_equals(Element node <form id="form1"><object form="form1"></object></form>, Element node <form id="form1"><object form="form1"></object></form>)
    at HTMLObjectElement.<anonymous> ( /html/semantics/forms/form-control-infrastructure/form_attribute.html:201:11)
Pass[OBJECT] When non-form element with same ID as the control's form attribute is inserted earlier in tree order, the control does not have a form owner
Asserts run
Pass
assert_equals(Element node <form id="form1"></form>, Element node <form id="form1"></form>)
    at HTMLObjectElement.<anonymous> ( /html/semantics/forms/form-control-infrastructure/form_attribute.html:208:11)
Pass
assert_equals(null, null)
    at HTMLObjectElement.<anonymous> ( /html/semantics/forms/form-control-infrastructure/form_attribute.html:213:11)
Pass
assert_equals(Element node <form id="form1"></form>, Element node <form id="form1"></form>)
    at HTMLObjectElement.<anonymous> ( /html/semantics/forms/form-control-infrastructure/form_attribute.html:216:11)
Pass[OBJECT] A control that is not in the document but has the form attribute set is associated with the nearest ancestor form if one exists
Asserts run
Pass
assert_equals(Element node <form id="form1"><object form="form1"></object></form>, Element node <form id="form1"><object form="form1"></object></form>)
    at HTMLObjectElement.<anonymous> ( /html/semantics/forms/form-control-infrastructure/form_attribute.html:223:11)
Pass
assert_equals(Element node <form id="form1"><object form="form1"></object></form>, Element node <form id="form1"><object form="form1"></object></form>)
    at HTMLObjectElement.<anonymous> ( /html/semantics/forms/form-control-infrastructure/form_attribute.html:226:11)
Pass[OUTPUT] Basic form association - control with no form attribute is associated with ancestor
Asserts run
Pass
assert_equals(Element node <form id="form1"><output></output></form>, Element node <form id="form1"><output></output></form>)
    at HTMLOutputElement.<anonymous> ( /html/semantics/forms/form-control-infrastructure/form_attribute.html:82:11)
Pass[OUTPUT] Form owner is reset to null when control's form attribute is set to an ID that does not exist in the document
Asserts run
Pass
assert_equals(Element node <form id="form1"><output form="form1"></output></form>, Element node <form id="form1"><output form="form1"></output></form>)
    at HTMLOutputElement.<anonymous> ( /html/semantics/forms/form-control-infrastructure/form_attribute.html:88:11)
Pass
assert_equals(null, null)
    at HTMLOutputElement.<anonymous> ( /html/semantics/forms/form-control-infrastructure/form_attribute.html:91:11)
Pass[OUTPUT] Control whose form attribute is an empty string has no form owner
Asserts run
Pass
assert_equals(null, null)
    at HTMLOutputElement.<anonymous> ( /html/semantics/forms/form-control-infrastructure/form_attribute.html:98:11)
Pass[OUTPUT] Control whose form attribute is an empty string has no form owner even when form with empty attribute is present
Asserts run
Pass
assert_equals(null, null)
    at HTMLOutputElement.<anonymous> ( /html/semantics/forms/form-control-infrastructure/form_attribute.html:105:11)
Pass[OUTPUT] Control's form attribute must be a case sensitive match for the form's id
Asserts run
Pass
assert_equals(null, null)
    at HTMLOutputElement.<anonymous> ( /html/semantics/forms/form-control-infrastructure/form_attribute.html:113:11)
Pass[OUTPUT] Setting the form attribute of a control to the id of a non-ancestor form works
Asserts run
Pass
assert_equals(Element node <form id="form1"><output></output></form>, Element node <form id="form1"><output></output></form>)
    at HTMLOutputElement.<anonymous> ( /html/semantics/forms/form-control-infrastructure/form_attribute.html:118:11)
Pass
assert_equals(Element node <form id="form2"></form>, Element node <form id="form2"></form>)
    at HTMLOutputElement.<anonymous> ( /html/semantics/forms/form-control-infrastructure/form_attribute.html:121:11)
Pass[OUTPUT] Removing form id from a control resets the form owner to ancestor
Asserts run
Pass
assert_equals(Element node <form id="form1"></form>, Element node <form id="form1"></form>)
    at HTMLOutputElement.<anonymous> ( /html/semantics/forms/form-control-infrastructure/form_attribute.html:128:11)
Pass
assert_equals(Element node <form id="form2"><output></output></form>, Element node <form id="form2"><output></output></form>)
    at HTMLOutputElement.<anonymous> ( /html/semantics/forms/form-control-infrastructure/form_attribute.html:131:11)
Pass[OUTPUT] Removing the form owner of a control with form attribute resets the form owner to null
Asserts run
Pass
assert_equals(Element node <form id="form1"></form>, Element node <form id="form1"></form>)
    at HTMLOutputElement.<anonymous> ( /html/semantics/forms/form-control-infrastructure/form_attribute.html:138:11)
Pass
assert_equals(null, null)
    at HTMLOutputElement.<anonymous> ( /html/semantics/forms/form-control-infrastructure/form_attribute.html:142:11)
Pass[OUTPUT] Changing form attibute of control resets form owner to correct form
Asserts run
Pass
assert_equals(Element node <form id="form3"><output></output></form>, Element node <form id="form3"><output></output></form>)
    at HTMLOutputElement.<anonymous> ( /html/semantics/forms/form-control-infrastructure/form_attribute.html:151:11)
Pass
assert_equals(Element node <form id="form2"></form>, Element node <form id="form2"></form>)
    at HTMLOutputElement.<anonymous> ( /html/semantics/forms/form-control-infrastructure/form_attribute.html:154:11)
Pass
assert_equals(Element node <form id="form1"></form>, Element node <form id="form1"></form>)
    at HTMLOutputElement.<anonymous> ( /html/semantics/forms/form-control-infrastructure/form_attribute.html:157:11)
Pass[OUTPUT] Moving a control with form attribute within the document does not change the form owner
Asserts run
Pass
assert_equals(Element node <form id="form1"></form>, Element node <form id="form1"></form>)
    at HTMLOutputElement.<anonymous> ( /html/semantics/forms/form-control-infrastructure/form_attribute.html:167:11)
Pass
assert_equals(Element node <form id="form1"><output form="form1"></output></form>, Element node <form id="form1"><output form="form1"></output></form>)
    at HTMLOutputElement.<anonymous> ( /html/semantics/forms/form-control-infrastructure/form_attribute.html:170:11)
Pass
assert_equals(Element node <form id="form1"></form>, Element node <form id="form1"></form>)
    at HTMLOutputElement.<anonymous> ( /html/semantics/forms/form-control-infrastructure/form_attribute.html:173:11)
Pass[OUTPUT] When the id of a non-ancestor form changes from not being a match for the form attribute to being a match, the control's form owner is reset
Asserts run
Pass
assert_equals(null, null)
    at HTMLOutputElement.<anonymous> ( /html/semantics/forms/form-control-infrastructure/form_attribute.html:181:11)
Pass
assert_equals(Element node <form id="form1"></form>, Element node <form id="form1"></form>)
    at HTMLOutputElement.<anonymous> ( /html/semantics/forms/form-control-infrastructure/form_attribute.html:184:11)
Pass[OUTPUT] When form element with same ID as the control's form attribute is inserted earlier in tree order, the form owner is changed to the inserted form
Asserts run
Pass
assert_equals(Element node <form id="form1"><output form="form1"></output></form>, Element node <form id="form1"><output form="form1"></output></form>)
    at HTMLOutputElement.<anonymous> ( /html/semantics/forms/form-control-infrastructure/form_attribute.html:191:11)
Pass
assert_equals(Element node <form id="form1"></form>, Element node <form id="form1"></form>)
    at HTMLOutputElement.<anonymous> ( /html/semantics/forms/form-control-infrastructure/form_attribute.html:195:11)
Pass
assert_equals(Element node <form id="form1"><output form="form1"></output></form>, Element node <form id="form1"><output form="form1"></output></form>)
    at HTMLOutputElement.<anonymous> ( /html/semantics/forms/form-control-infrastructure/form_attribute.html:198:11)
Pass
assert_equals(Element node <form id="form1"><output form="form1"></output></form>, Element node <form id="form1"><output form="form1"></output></form>)
    at HTMLOutputElement.<anonymous> ( /html/semantics/forms/form-control-infrastructure/form_attribute.html:201:11)
Pass[OUTPUT] When non-form element with same ID as the control's form attribute is inserted earlier in tree order, the control does not have a form owner
Asserts run
Pass
assert_equals(Element node <form id="form1"></form>, Element node <form id="form1"></form>)
    at HTMLOutputElement.<anonymous> ( /html/semantics/forms/form-control-infrastructure/form_attribute.html:208:11)
Pass
assert_equals(null, null)
    at HTMLOutputElement.<anonymous> ( /html/semantics/forms/form-control-infrastructure/form_attribute.html:213:11)
Pass
assert_equals(Element node <form id="form1"></form>, Element node <form id="form1"></form>)
    at HTMLOutputElement.<anonymous> ( /html/semantics/forms/form-control-infrastructure/form_attribute.html:216:11)
Pass[OUTPUT] A control that is not in the document but has the form attribute set is associated with the nearest ancestor form if one exists
Asserts run
Pass
assert_equals(Element node <form id="form1"><output form="form1"></output></form>, Element node <form id="form1"><output form="form1"></output></form>)
    at HTMLOutputElement.<anonymous> ( /html/semantics/forms/form-control-infrastructure/form_attribute.html:223:11)
Pass
assert_equals(Element node <form id="form1"><output form="form1"></output></form>, Element node <form id="form1"><output form="form1"></output></form>)
    at HTMLOutputElement.<anonymous> ( /html/semantics/forms/form-control-infrastructure/form_attribute.html:226:11)
Pass[SELECT] Basic form association - control with no form attribute is associated with ancestor
Asserts run
Pass
assert_equals(Element node <form id="form1"><select></select></form>, Element node <form id="form1"><select></select></form>)
    at HTMLSelectElement.<anonymous> ( /html/semantics/forms/form-control-infrastructure/form_attribute.html:82:11)
Pass[SELECT] Form owner is reset to null when control's form attribute is set to an ID that does not exist in the document
Asserts run
Pass
assert_equals(Element node <form id="form1"><select form="form1"></select></form>, Element node <form id="form1"><select form="form1"></select></form>)
    at HTMLSelectElement.<anonymous> ( /html/semantics/forms/form-control-infrastructure/form_attribute.html:88:11)
Pass
assert_equals(null, null)
    at HTMLSelectElement.<anonymous> ( /html/semantics/forms/form-control-infrastructure/form_attribute.html:91:11)
Pass[SELECT] Control whose form attribute is an empty string has no form owner
Asserts run
Pass
assert_equals(null, null)
    at HTMLSelectElement.<anonymous> ( /html/semantics/forms/form-control-infrastructure/form_attribute.html:98:11)
Pass[SELECT] Control whose form attribute is an empty string has no form owner even when form with empty attribute is present
Asserts run
Pass
assert_equals(null, null)
    at HTMLSelectElement.<anonymous> ( /html/semantics/forms/form-control-infrastructure/form_attribute.html:105:11)
Pass[SELECT] Control's form attribute must be a case sensitive match for the form's id
Asserts run
Pass
assert_equals(null, null)
    at HTMLSelectElement.<anonymous> ( /html/semantics/forms/form-control-infrastructure/form_attribute.html:113:11)
Pass[SELECT] Setting the form attribute of a control to the id of a non-ancestor form works
Asserts run
Pass
assert_equals(Element node <form id="form1"><select></select></form>, Element node <form id="form1"><select></select></form>)
    at HTMLSelectElement.<anonymous> ( /html/semantics/forms/form-control-infrastructure/form_attribute.html:118:11)
Pass
assert_equals(Element node <form id="form2"></form>, Element node <form id="form2"></form>)
    at HTMLSelectElement.<anonymous> ( /html/semantics/forms/form-control-infrastructure/form_attribute.html:121:11)
Pass[SELECT] Removing form id from a control resets the form owner to ancestor
Asserts run
Pass
assert_equals(Element node <form id="form1"></form>, Element node <form id="form1"></form>)
    at HTMLSelectElement.<anonymous> ( /html/semantics/forms/form-control-infrastructure/form_attribute.html:128:11)
Pass
assert_equals(Element node <form id="form2"><select></select></form>, Element node <form id="form2"><select></select></form>)
    at HTMLSelectElement.<anonymous> ( /html/semantics/forms/form-control-infrastructure/form_attribute.html:131:11)
Pass[SELECT] Removing the form owner of a control with form attribute resets the form owner to null
Asserts run
Pass
assert_equals(Element node <form id="form1"></form>, Element node <form id="form1"></form>)
    at HTMLSelectElement.<anonymous> ( /html/semantics/forms/form-control-infrastructure/form_attribute.html:138:11)
Pass
assert_equals(null, null)
    at HTMLSelectElement.<anonymous> ( /html/semantics/forms/form-control-infrastructure/form_attribute.html:142:11)
Pass[SELECT] Changing form attibute of control resets form owner to correct form
Asserts run
Pass
assert_equals(Element node <form id="form3"><select></select></form>, Element node <form id="form3"><select></select></form>)
    at HTMLSelectElement.<anonymous> ( /html/semantics/forms/form-control-infrastructure/form_attribute.html:151:11)
Pass
assert_equals(Element node <form id="form2"></form>, Element node <form id="form2"></form>)
    at HTMLSelectElement.<anonymous> ( /html/semantics/forms/form-control-infrastructure/form_attribute.html:154:11)
Pass
assert_equals(Element node <form id="form1"></form>, Element node <form id="form1"></form>)
    at HTMLSelectElement.<anonymous> ( /html/semantics/forms/form-control-infrastructure/form_attribute.html:157:11)
Pass[SELECT] Moving a control with form attribute within the document does not change the form owner
Asserts run
Pass
assert_equals(Element node <form id="form1"></form>, Element node <form id="form1"></form>)
    at HTMLSelectElement.<anonymous> ( /html/semantics/forms/form-control-infrastructure/form_attribute.html:167:11)
Pass
assert_equals(Element node <form id="form1"><select form="form1"></select></form>, Element node <form id="form1"><select form="form1"></select></form>)
    at HTMLSelectElement.<anonymous> ( /html/semantics/forms/form-control-infrastructure/form_attribute.html:170:11)
Pass
assert_equals(Element node <form id="form1"></form>, Element node <form id="form1"></form>)
    at HTMLSelectElement.<anonymous> ( /html/semantics/forms/form-control-infrastructure/form_attribute.html:173:11)
Pass[SELECT] When the id of a non-ancestor form changes from not being a match for the form attribute to being a match, the control's form owner is reset
Asserts run
Pass
assert_equals(null, null)
    at HTMLSelectElement.<anonymous> ( /html/semantics/forms/form-control-infrastructure/form_attribute.html:181:11)
Pass
assert_equals(Element node <form id="form1"></form>, Element node <form id="form1"></form>)
    at HTMLSelectElement.<anonymous> ( /html/semantics/forms/form-control-infrastructure/form_attribute.html:184:11)
Pass[SELECT] When form element with same ID as the control's form attribute is inserted earlier in tree order, the form owner is changed to the inserted form
Asserts run
Pass
assert_equals(Element node <form id="form1"><select form="form1"></select></form>, Element node <form id="form1"><select form="form1"></select></form>)
    at HTMLSelectElement.<anonymous> ( /html/semantics/forms/form-control-infrastructure/form_attribute.html:191:11)
Pass
assert_equals(Element node <form id="form1"></form>, Element node <form id="form1"></form>)
    at HTMLSelectElement.<anonymous> ( /html/semantics/forms/form-control-infrastructure/form_attribute.html:195:11)
Pass
assert_equals(Element node <form id="form1"><select form="form1"></select></form>, Element node <form id="form1"><select form="form1"></select></form>)
    at HTMLSelectElement.<anonymous> ( /html/semantics/forms/form-control-infrastructure/form_attribute.html:198:11)
Pass
assert_equals(Element node <form id="form1"><select form="form1"></select></form>, Element node <form id="form1"><select form="form1"></select></form>)
    at HTMLSelectElement.<anonymous> ( /html/semantics/forms/form-control-infrastructure/form_attribute.html:201:11)
Pass[SELECT] When non-form element with same ID as the control's form attribute is inserted earlier in tree order, the control does not have a form owner
Asserts run
Pass
assert_equals(Element node <form id="form1"></form>, Element node <form id="form1"></form>)
    at HTMLSelectElement.<anonymous> ( /html/semantics/forms/form-control-infrastructure/form_attribute.html:208:11)
Pass
assert_equals(null, null)
    at HTMLSelectElement.<anonymous> ( /html/semantics/forms/form-control-infrastructure/form_attribute.html:213:11)
Pass
assert_equals(Element node <form id="form1"></form>, Element node <form id="form1"></form>)
    at HTMLSelectElement.<anonymous> ( /html/semantics/forms/form-control-infrastructure/form_attribute.html:216:11)
Pass[SELECT] A control that is not in the document but has the form attribute set is associated with the nearest ancestor form if one exists
Asserts run
Pass
assert_equals(Element node <form id="form1"><select form="form1"></select></form>, Element node <form id="form1"><select form="form1"></select></form>)
    at HTMLSelectElement.<anonymous> ( /html/semantics/forms/form-control-infrastructure/form_attribute.html:223:11)
Pass
assert_equals(Element node <form id="form1"><select form="form1"></select></form>, Element node <form id="form1"><select form="form1"></select></form>)
    at HTMLSelectElement.<anonymous> ( /html/semantics/forms/form-control-infrastructure/form_attribute.html:226:11)
Pass[TEXTAREA] Basic form association - control with no form attribute is associated with ancestor
Asserts run
Pass
assert_equals(Element node <form id="form1"><textarea></textarea></form>, Element node <form id="form1"><textarea></textarea></form>)
    at HTMLTextAreaElement.<anonymous> ( /html/semantics/forms/form-control-infrastructure/form_attribute.html:82:11)
Pass[TEXTAREA] Form owner is reset to null when control's form attribute is set to an ID that does not exist in the document
Asserts run
Pass
assert_equals(Element node <form id="form1"><textarea form="form1"></textarea></form>, Element node <form id="form1"><textarea form="form1"></textarea></form>)
    at HTMLTextAreaElement.<anonymous> ( /html/semantics/forms/form-control-infrastructure/form_attribute.html:88:11)
Pass
assert_equals(null, null)
    at HTMLTextAreaElement.<anonymous> ( /html/semantics/forms/form-control-infrastructure/form_attribute.html:91:11)
Pass[TEXTAREA] Control whose form attribute is an empty string has no form owner
Asserts run
Pass
assert_equals(null, null)
    at HTMLTextAreaElement.<anonymous> ( /html/semantics/forms/form-control-infrastructure/form_attribute.html:98:11)
Pass[TEXTAREA] Control whose form attribute is an empty string has no form owner even when form with empty attribute is present
Asserts run
Pass
assert_equals(null, null)
    at HTMLTextAreaElement.<anonymous> ( /html/semantics/forms/form-control-infrastructure/form_attribute.html:105:11)
Pass[TEXTAREA] Control's form attribute must be a case sensitive match for the form's id
Asserts run
Pass
assert_equals(null, null)
    at HTMLTextAreaElement.<anonymous> ( /html/semantics/forms/form-control-infrastructure/form_attribute.html:113:11)
Pass[TEXTAREA] Setting the form attribute of a control to the id of a non-ancestor form works
Asserts run
Pass
assert_equals(Element node <form id="form1"><textarea></textarea></form>, Element node <form id="form1"><textarea></textarea></form>)
    at HTMLTextAreaElement.<anonymous> ( /html/semantics/forms/form-control-infrastructure/form_attribute.html:118:11)
Pass
assert_equals(Element node <form id="form2"></form>, Element node <form id="form2"></form>)
    at HTMLTextAreaElement.<anonymous> ( /html/semantics/forms/form-control-infrastructure/form_attribute.html:121:11)
Pass[TEXTAREA] Removing form id from a control resets the form owner to ancestor
Asserts run
Pass
assert_equals(Element node <form id="form1"></form>, Element node <form id="form1"></form>)
    at HTMLTextAreaElement.<anonymous> ( /html/semantics/forms/form-control-infrastructure/form_attribute.html:128:11)
Pass
assert_equals(Element node <form id="form2"><textarea></textarea></form>, Element node <form id="form2"><textarea></textarea></form>)
    at HTMLTextAreaElement.<anonymous> ( /html/semantics/forms/form-control-infrastructure/form_attribute.html:131:11)
Pass[TEXTAREA] Removing the form owner of a control with form attribute resets the form owner to null
Asserts run
Pass
assert_equals(Element node <form id="form1"></form>, Element node <form id="form1"></form>)
    at HTMLTextAreaElement.<anonymous> ( /html/semantics/forms/form-control-infrastructure/form_attribute.html:138:11)
Pass
assert_equals(null, null)
    at HTMLTextAreaElement.<anonymous> ( /html/semantics/forms/form-control-infrastructure/form_attribute.html:142:11)
Pass[TEXTAREA] Changing form attibute of control resets form owner to correct form
Asserts run
Pass
assert_equals(Element node <form id="form3"><textarea></textarea></form>, Element node <form id="form3"><textarea></textarea></form>)
    at HTMLTextAreaElement.<anonymous> ( /html/semantics/forms/form-control-infrastructure/form_attribute.html:151:11)
Pass
assert_equals(Element node <form id="form2"></form>, Element node <form id="form2"></form>)
    at HTMLTextAreaElement.<anonymous> ( /html/semantics/forms/form-control-infrastructure/form_attribute.html:154:11)
Pass
assert_equals(Element node <form id="form1"></form>, Element node <form id="form1"></form>)
    at HTMLTextAreaElement.<anonymous> ( /html/semantics/forms/form-control-infrastructure/form_attribute.html:157:11)
Pass[TEXTAREA] Moving a control with form attribute within the document does not change the form owner
Asserts run
Pass
assert_equals(Element node <form id="form1"></form>, Element node <form id="form1"></form>)
    at HTMLTextAreaElement.<anonymous> ( /html/semantics/forms/form-control-infrastructure/form_attribute.html:167:11)
Pass
assert_equals(Element node <form id="form1"><textarea form="form1"></textarea></form>, Element node <form id="form1"><textarea form="form1"></textarea></form>)
    at HTMLTextAreaElement.<anonymous> ( /html/semantics/forms/form-control-infrastructure/form_attribute.html:170:11)
Pass
assert_equals(Element node <form id="form1"></form>, Element node <form id="form1"></form>)
    at HTMLTextAreaElement.<anonymous> ( /html/semantics/forms/form-control-infrastructure/form_attribute.html:173:11)
Pass[TEXTAREA] When the id of a non-ancestor form changes from not being a match for the form attribute to being a match, the control's form owner is reset
Asserts run
Pass
assert_equals(null, null)
    at HTMLTextAreaElement.<anonymous> ( /html/semantics/forms/form-control-infrastructure/form_attribute.html:181:11)
Pass
assert_equals(Element node <form id="form1"></form>, Element node <form id="form1"></form>)
    at HTMLTextAreaElement.<anonymous> ( /html/semantics/forms/form-control-infrastructure/form_attribute.html:184:11)
Pass[TEXTAREA] When form element with same ID as the control's form attribute is inserted earlier in tree order, the form owner is changed to the inserted form
Asserts run
Pass
assert_equals(Element node <form id="form1"><textarea form="form1"></textarea></form>, Element node <form id="form1"><textarea form="form1"></textarea></form>)
    at HTMLTextAreaElement.<anonymous> ( /html/semantics/forms/form-control-infrastructure/form_attribute.html:191:11)
Pass
assert_equals(Element node <form id="form1"></form>, Element node <form id="form1"></form>)
    at HTMLTextAreaElement.<anonymous> ( /html/semantics/forms/form-control-infrastructure/form_attribute.html:195:11)
Pass
assert_equals(Element node <form id="form1"><textarea form="form1"></textarea></form>, Element node <form id="form1"><textarea form="form1"></textarea></form>)
    at HTMLTextAreaElement.<anonymous> ( /html/semantics/forms/form-control-infrastructure/form_attribute.html:198:11)
Pass
assert_equals(Element node <form id="form1"><textarea form="form1"></textarea></form>, Element node <form id="form1"><textarea form="form1"></textarea></form>)
    at HTMLTextAreaElement.<anonymous> ( /html/semantics/forms/form-control-infrastructure/form_attribute.html:201:11)
Pass[TEXTAREA] When non-form element with same ID as the control's form attribute is inserted earlier in tree order, the control does not have a form owner
Asserts run
Pass
assert_equals(Element node <form id="form1"></form>, Element node <form id="form1"></form>)
    at HTMLTextAreaElement.<anonymous> ( /html/semantics/forms/form-control-infrastructure/form_attribute.html:208:11)
Pass
assert_equals(null, null)
    at HTMLTextAreaElement.<anonymous> ( /html/semantics/forms/form-control-infrastructure/form_attribute.html:213:11)
Pass
assert_equals(Element node <form id="form1"></form>, Element node <form id="form1"></form>)
    at HTMLTextAreaElement.<anonymous> ( /html/semantics/forms/form-control-infrastructure/form_attribute.html:216:11)
Pass[TEXTAREA] A control that is not in the document but has the form attribute set is associated with the nearest ancestor form if one exists
Asserts run
Pass
assert_equals(Element node <form id="form1"><textarea form="form1"></textarea></form>, Element node <form id="form1"><textarea form="form1"></textarea></form>)
    at HTMLTextAreaElement.<anonymous> ( /html/semantics/forms/form-control-infrastructure/form_attribute.html:223:11)
Pass
assert_equals(Element node <form id="form1"><textarea form="form1"></textarea></form>, Element node <form id="form1"><textarea form="form1"></textarea></form>)
    at HTMLTextAreaElement.<anonymous> ( /html/semantics/forms/form-control-infrastructure/form_attribute.html:226:11)