| OLD | NEW |
| 1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
| 2 <html> | 2 <html> |
| 3 <head> | 3 <head> |
| 4 <script src="../../js/resources/js-test-pre.js"></script> | 4 <script src="../../js/resources/js-test-pre.js"></script> |
| 5 </head> | 5 </head> |
| 6 <body> | 6 <body> |
| 7 <p id="description"></p> | 7 <p id="description"></p> |
| 8 <div id="console"></div> | 8 <div id="console"></div> |
| 9 <div id="result"></div> | 9 <div id="result"></div> |
| 10 <div id="div" contentEditable="true"> | 10 <div id="div" contentEditable="true"> |
| 11 <div> | 11 <div> |
| 12 <div> | 12 <div> |
| 13 <p id="p"></p> | 13 <p id="p"></p> |
| 14 </div> | 14 </div> |
| 15 </div> | 15 </div> |
| 16 </div> | 16 </div> |
| 17 </div> | 17 </div> |
| 18 <script> | 18 <script> |
| 19 description('When contentEditable is missing, it maps to "inherit" state and the
element is editable if its nearest ancestor is.') | 19 description('When contentEditable is missing, it maps to "inherit" state and the
element is editable if its nearest ancestor is.') |
| 20 | 20 |
| 21 shouldBe('document.getElementById("p").hasAttribute("contentEditable")','false')
; | 21 shouldBe('document.getElementById("p").hasAttribute("contentEditable")','false')
; |
| 22 shouldBe('document.getElementById("p").contentEditable', '"inherit"'); | 22 shouldBe('document.getElementById("p").contentEditable', '"inherit"'); |
| 23 shouldBe('document.getElementById("p").isContentEditable', 'true'); | 23 shouldBe('document.getElementById("p").isContentEditable', 'true'); |
| 24 shouldBe('window.getComputedStyle(p, "").getPropertyValue("-webkit-user-modify")
', '"read-write"'); | 24 shouldBe('window.getComputedStyle(p, "").getPropertyValue("-webkit-user-modify")
', '"read-write"'); |
| 25 | 25 |
| 26 document.getElementById("div").style.display= 'none'; | 26 document.getElementById("div").style.display= 'none'; |
| 27 </script> | 27 </script> |
| 28 <script src="../../js/resources/js-test-post.js"></script> | |
| 29 </body> | 28 </body> |
| 30 </html> | 29 </html> |
| OLD | NEW |