Source code

Revision control

Copy as Markdown

Other Tools

Test Info:

<!DOCTYPE html>
<title>Event listeners: replace listener after moving between documents</title>
<link rel="author" title="Nate Chapin" href="">
<meta name="assert" content="Overwriting an attribute event listener after adopting the owning node to a different document should not crash"/>
<progress id="p">
<iframe id="i"></iframe>
var p = document.getElementById("p");
p.setAttribute("ontouchcancel", "");
p.setAttribute("ontouchcancel", "");