Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
<title>Sarissa glitch with mootools</title>
<script type="text/javascript" src="sarissa.js"></script>
<script type="text/javascript" src="sarissa_ieemu_xpath.js"></script>
<script type="text/javascript" src="mootools-1.2.4-core-nc.js"></script>
<script type="text/javascript">
source = '<root><burp decibel="too much" direction="front of you" save="none"></burp></root>';
var doc = (new DOMParser()).parseFromString(source, "text/xml");
var burp = doc.selectNodes("//burp")[0];
var shoutAttr = function(attr){alert([,":",attr.value].join(""));};
* This code work in ie*/
for(var i=0,max=burp.attributes.length;i<max;i++){
var attr=burp.attributes[i];
// this throws error(s)
// $each(burp.attributes,shoutAttr);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment