Re: adoptNode fails if node type element has collapsed attribute?
"alta88[nntp]" <[email protected]>
| Newsgroups | gmane.comp.mozilla.devel.dom |
|---|---|
| Message-ID | <[email protected]> |
---On 2008.May.28 01:47 PM, Boris Zbarsky wrote: > alta88[nntp] wrote: >> a particular button (download statusbar) has a collapsed=true >> attribute. removing this from the extension's xul (must remove, >> cannot set to false) eliminates the adoptNode failure. > > What failure exactly? You never described exactly what fails. > > -Boris after the document.adoptNode(node), node properties are null (i assume, venkman lists 'err'). the adoptNode doesn't throw but a later attempt to access node.localName does: Error: Illegal operation on WrappedNative prototype object = NS_ERROR_XPC_BAD_OP_ON_WN_PROTO Source file: chrome://global/content/customizeToolbar.js Line: 449 the problem is consistently reproducible by adding/removing the collapsed attribute in the xul.