| <html> |
| <body> |
| <p> Bug <a href="https://bugs.webkit.org/show_bug.cgi?id=23826"> 23826 </a>: Potential bug with before/after rule while moving element from one document to another </p> |
| <p> This test that moving a quote element sets the before / after flag in the final document. </p> |
| <script> |
| function test(iframe) |
| { |
| var otherDocument = iframe.contentDocument; |
| var quoteElement = otherDocument.createElement("q"); |
| quoteElement.appendChild(otherDocument.createTextNode("Quotes should surround")); |
| quoteElement.appendChild(otherDocument.createElement("p")); |
| quoteElement.appendChild(otherDocument.createTextNode("this text.")); |
| document.getElementById("console").appendChild(quoteElement); |
| } |
| </script> |
| <div id="console"> </div> |
| <iframe src="about:blank" id="iframe" onload="test(this)" style="display: none"> </iframe> |
| </body> |
| </html> |