Women in Technology

Hear us Roar



Article:
  XML Transformations with CSS and DOM
Subject:   Working example
Date:   2003-06-09 10:49:39
From:   anonymous2
Response to: Working example

This is due to an error in the JavaScript


In the css.js file replace the line
newLinkElm.setAttributeNS(xhtml,"href",linkURL);
by :
newLinkElm.setAttributeNS("","href",linkURL)


http://bugzilla.mozilla.org/show_bug.cgi?id=184744


The only reason this works in 1.0 is that 1.0 has a bug in the handling of attribute namespaces.