blob: 863f63c8d6a0f39309b1cea7837b4462d0f7d8a9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
<!DOCTYPE html>
<html>
<head>
<script src="../../resources/js-test.js"></script>
</head>
<body>
<p id="description"></p>
<div id="console"></div>
<script>
description('Test for <a href="https://bugs.webkit.org/show_bug.cgi?id=50335">https://bugs.webkit.org/show_bug.cgi?id=50335</a>');
var input = document.createElement('input');
input.setAttribute('incremental', '')
shouldBeTrue('input.incremental');
input.removeAttribute('incremental');
shouldBeFalse('input.incremental');
input.incremental = true;
shouldBeTrue('input.hasAttribute("incremental")');
input.incremental = false;
shouldBeFalse('input.hasAttribute("incremental")');
</script>
</body>
</html>
|