}, "Check if the HTMLInputElement.capture attribute exists");
test(function() {
- assert_equals(typeof htmlInputElement.capture, "boolean", "the type of capture attribute");
+ assert_equals(typeof htmlInputElement.capture, "string", "the type of capture attribute");
}, "Check if the type of HTMLInputElement.capture is boolean");
</script>
</body>
<div id='log'></div>
<script>
test(function() {
- assert_equals(document.querySelector('#absent').capture, false, 'capture is false when the value is absent');
+ assert_equals(document.querySelector('#absent').capture, "", 'capture is false when the value is absent');
}, 'input.capture is boolean when the capture attribute is absent');
test(function() {
- assert_equals(document.querySelector('#present').capture, true, 'capture is true when the value is present');
+ assert_equals(document.querySelector('#present').capture, "", 'capture is true when the value is present');
}, 'input.capture is correct when the capture attribute is present');
</script>
</body>