blob: c913e2c8eaf7f91aa28f90b877b15c7386c88a62 [file] [log] [blame]
<!DOCTYPE html>
<form id=myform></form>
<script src="../../resources/js-test.js"></script>
<script>
description('Inserting a form control with a form attribute into a non-document tree should not cause it to get a form owner.');
var input = document.createElement('input');
input.setAttribute('form', 'myform');
shouldBeNull('input.form');
var div = document.createElement('div');
div.appendChild(input);
shouldBeNull('input.form');
</script>