Fri, 16 Jan 2015 04:50:19 +0100
Replace accessor implementation with direct member state manipulation, by
request https://trac.torproject.org/projects/tor/ticket/9701#comment:32
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> |