Thu, 22 Jan 2015 13:21:57 +0100
Incorporate requested changes from Mozilla in review:
https://bugzilla.mozilla.org/show_bug.cgi?id=1123480#c6
michael@0 | 1 | <html class="reftest-wait">><class><address></address><children id=test1>><acronym id=test2></acronym><aside><iframe src=simple_blank.swf></iframe> |
michael@0 | 2 | |
michael@0 | 3 | |
michael@0 | 4 | </aside><script> |
michael@0 | 5 | setTimeout("boom()", 2000); |
michael@0 | 6 | function boom() { |
michael@0 | 7 | document.designMode = "on"; |
michael@0 | 8 | document.execCommand("InsertHTML", false, "<dl>") |
michael@0 | 9 | r = document.createRange(); |
michael@0 | 10 | window.getSelection().removeAllRanges(); |
michael@0 | 11 | r.setStart(test1, 0); |
michael@0 | 12 | r.setEnd(test2, test2.childNodes.length); |
michael@0 | 13 | window.getSelection().addRange(r); |
michael@0 | 14 | document.execCommand("InsertHTML", false, " ") |
michael@0 | 15 | document.documentElement.removeAttribute("class"); |
michael@0 | 16 | } |
michael@0 | 17 | </script> |