Created
November 11, 2011 13:41
-
-
Save joewalker/1358026 to your computer and use it in GitHub Desktop.
XUL document bizarreness
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
// document is browser.xul | |
var p = document.createElementNS('p', XHTML); | |
p.foo = { hello:'world' }; | |
console.log(p.foo.hello); // world | |
document.body.appendChild(p); | |
console.log(p.foo.hello); // Error p.foo does not exist |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment