Skip to content

Instantly share code, notes, and snippets.

@joewalker
Created November 11, 2011 13:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save joewalker/1358026 to your computer and use it in GitHub Desktop.
Save joewalker/1358026 to your computer and use it in GitHub Desktop.
XUL document bizarreness
// 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