Last active
December 20, 2015 19:48
-
-
Save bkardell/6185462 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <html> | |
| <head> | |
| <style> | |
| @keyframes nodeInserted { | |
| from { | |
| clip: rect(1px, auto, auto, auto); | |
| } | |
| to { | |
| clip: rect(0px, auto, auto, auto); | |
| } | |
| } | |
| @-moz-keyframes nodeInserted { | |
| from { | |
| clip: rect(1px, auto, auto, auto); | |
| } | |
| to { | |
| clip: rect(0px, auto, auto, auto); | |
| } | |
| } | |
| </style> | |
| <script> | |
| temp = []; | |
| onDOMNodeInserted = function(event){ | |
| temp.push(event.srcElement.tagNAme) | |
| } | |
| document.addEventListener('animationstart', onDOMNodeInserted, false); | |
| document.addEventListener('MSAnimationStart', onDOMNodeInserted, false); | |
| document.addEventListener('webkitAnimationStart', onDOMNodeInserted, false); | |
| </script> | |
| <meta name="foo"> | |
| <link type="text/x-foo"> | |
| </head> | |
| <body> | |
| <h1>Omg..</h1> | |
| <div id="result"></div> | |
| <script> | |
| document.getElementById("result").innerHTML = "added tags:" + temp.join(","); | |
| </script> | |
| </body> | |
| </html> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <html> | |
| <head> | |
| <script> | |
| var temp=[]; | |
| document.addEventListener("DOMNodeInserted", function (evt) { | |
| temp.push(evt.srcElement.tagName); | |
| }); | |
| </script> | |
| <meta name="foo"> | |
| <link type="text/x-foo"> | |
| </head> | |
| <body> | |
| <h1>Omg..</h1> | |
| <div id="result"></div> | |
| <script> | |
| document.getElementById("result").innerHTML = "added tags:" + temp.join(","); | |
| </script> | |
| </body> | |
| </html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment