Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
<title>Mootools $type and ActiveXObject</title>
<script type="text/javascript" src="mootools-1.2.4-core-nc.js"></script>
<script type="text/javascript">
var doc = new ActiveXObject("Msxml2.DOMDocument.4.0");
var source = '<root><burp decibel="too much" direction="front of you" save="none"></burp></root>';
doc.async = false;
var burp = doc.selectNodes("//burp")[0];
var shoutAttr = function(attr){alert([,":",attr.value].join(""));};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment