OLD | NEW |
(Empty) | |
| 1 title = Anonymous Frame document.write() - Circumvention - ABP Test Pages |
| 2 template = testcase |
| 3 |
| 4 <script> |
| 5 setTimeout(function() |
| 6 { |
| 7 var iframe = document.getElementById("append"); |
| 8 var span = document.createElement("span"); |
| 9 span.className = "testcase-circ-anoniframe-docwrite"; |
| 10 span.textContent = "This text should be hidden"; |
| 11 iframe.contentDocument.body.appendChild(span); |
| 12 var doc = document.getElementById("write").contentDocument; |
| 13 doc.open(); |
| 14 doc.write("<span class='testcase-circ-anoniframe-docwrite'>This text should be
hidden</span>"); |
| 15 doc.close(); |
| 16 }, 0); |
| 17 </script> |
| 18 |
| 19 <section class="site-panel"> |
| 20 |
| 21 <h2>Test case</h2> |
| 22 <div class="testcase-container"> |
| 23 <p> |
| 24 Top frame: [<span class="testcase-circ-anoniframe-docwrite">This text shou
ld be hidden</span>] |
| 25 </p> |
| 26 |
| 27 <p> |
| 28 Subframe (Element.appendChild): [<iframe id="append"></iframe>] |
| 29 </p> |
| 30 |
| 31 <p> |
| 32 Subframe (document.write): [<iframe id="write"></iframe>] |
| 33 </p> |
| 34 </div> |
| 35 <h3>Related links</h3> |
| 36 <p><a href="https://issues.adblockplus.org/ticket/3185">Issue #3185</a></p> |
| 37 </section> |
OLD | NEW |