blob: e6cd1943a783a2e76501abe9c12d1ae57590af46 [file] [log] [blame]
<!DOCTYPE html>
<form id=myform></form>
<script src="../../resources/js-test-pre.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>
<script src="../../resources/js-test-post.js"></script>