mirror of
https://github.com/classilla/tenfourfox.git
synced 2024-09-09 04:54:33 +00:00
20 lines
627 B
HTML
20 lines
627 B
HTML
<!DOCTYPE html>
|
|
<meta charset=utf-8>
|
|
<title>Test for constraint validation of form controls not in documents</title>
|
|
<script src="/resources/testharness.js"></script>
|
|
<script src="/resources/testharnessreport.js"></script>
|
|
<div id="log"></div>
|
|
<script>
|
|
test(function() {
|
|
var input = document.createElement('input');
|
|
input.required = true;
|
|
assert_false(input.checkValidity());
|
|
}, "Should validate input not in document");
|
|
|
|
test(function() {
|
|
var textarea = document.createElement('textarea');
|
|
textarea.required = true;
|
|
assert_false(textarea.checkValidity());
|
|
}, "Should validate textarea not in document");
|
|
</script>
|