| OLD | NEW | 
|---|
|  | (Empty) | 
| 1 <!DOCTYPE html> |  | 
| 2 <html> |  | 
| 3 <head> |  | 
| 4 <link rel="stylesheet" href="../../../fast/js/resources/js-test-style.css"> |  | 
| 5 <script src="../../../fast/js/resources/js-test-pre.js"></script> |  | 
| 6 <link id="test" type="text/css" rel="stylesheet" href="resources/htmllink-disabl
    e.css"/> |  | 
| 7 <link id="test_nostyle" type="text/css" rel="stylesheet" /> |  | 
| 8 |  | 
| 9 </head> |  | 
| 10 <body> |  | 
| 11 <p id="description"></p> |  | 
| 12 <div id="console"></div> |  | 
| 13 <script> |  | 
| 14 description('This test checks HTMLLinkElement disabled conforms to HTML5 spec fo
    r the bug id #<a href="https://bugs.webkit.org/show_bug.cgi?id=45425">45425</a> 
    .'); |  | 
| 15 |  | 
| 16 |  | 
| 17 var test = document.getElementById('test'); |  | 
| 18 var test_nostyle = document.getElementById('test_nostyle'); |  | 
| 19 // check initial value, should be false |  | 
| 20 shouldBe('test.disabled', 'false'); |  | 
| 21 // set value to true |  | 
| 22 test.disabled = true; |  | 
| 23 shouldBe('test.disabled', 'true'); |  | 
| 24 // Updated value should be reflected in style.sheet.disabled, 'true' in this cas
    e |  | 
| 25 shouldBe('test.sheet.disabled', 'true'); |  | 
| 26 // now set style.sheet.disabled to false |  | 
| 27 test.sheet.disabled = false; |  | 
| 28 shouldBe('test.sheet.disabled', 'false'); |  | 
| 29 // Updated value should be refectled in test.disabled |  | 
| 30 shouldBe('test.disabled', 'false'); |  | 
| 31 debug('<br>'); |  | 
| 32 // verify link.sheet is null since it does not contain an href attribute |  | 
| 33 shouldBe('test_nostyle.sheet', 'null'); |  | 
| 34 // if link.sheet = null link.disabled should be false |  | 
| 35 shouldBe('test_nostyle.disabled', 'false'); |  | 
| 36 // setting it to true |  | 
| 37 test_nostyle.disabled = true; |  | 
| 38 // should do nothing on setting. |  | 
| 39 shouldBe('test_nostyle.disabled', 'false'); |  | 
| 40 |  | 
| 41 |  | 
| 42 successfullyParsed= true; |  | 
| 43 </script> |  | 
| 44 <script src="../../../fast/js/resources/js-test-post.js"></script> |  | 
| 45 </body> |  | 
| 46 </html> |  | 
| OLD | NEW | 
|---|