On Apr 5, 2006, at 4:47 PM, Ian Hickson wrote:
"Just remove" implies a lot more implementation effort than "return null for inapplicable attributes". BTW what was your test? I tried this: _javascript_:alert("defaultView" in document.implementation.createDocument(null, null, null)); _javascript_:alert(document.implementation.createDocument(null, null, null).defaultView); _javascript_:alert("location" in document.implementation.createDocument(null, null, null)) _javascript_:alert(document.implementation.createDocument(null, null, null).location); The "in" expressions give "true" and the attempts to get the attribute give "null" in Firefox and Opera. This implies JS properties that are present but currently "null". An absent JS property would give "false" and "undefined" respectively. Safari actually screws both of these up, in the first case defaultView is present, but that will shortly be fixed, and location is absent because we only have it on HTMLDocument instead of Document, unlike Firefox and Opera. So I think the current rough consensus behavior is effectively that DocumentWindow is implemented but attributes that don't make sense for the non-presented case return null. Regards, Maciej |
- Re: ISSUE-66: should Documents that aren\'t being presen... Ian Hickson
- Re: ISSUE-66: should Documents that aren\'t being p... Jonas Sicking
- Re: ISSUE-66: should Documents that aren\'t bei... Maciej Stachowiak
- Re: ISSUE-66: should Documents that aren\'t... Jonas Sicking
- Re: ISSUE-66: should Documents that aren\'t... Ian Hickson
- Re: ISSUE-66: should Documents that are... Boris Zbarsky
- Re: ISSUE-66: should Documents tha... Jonas Sicking
- Re: ISSUE-66: should Documents that aren\'t bei... Ian Hickson
- Re: ISSUE-66: should Documents that aren\'t... Jonas Sicking
- Re: ISSUE-66: should Documents that aren't ... Anne van Kesteren
- Re: ISSUE-66: should Documents that aren\'t... Maciej Stachowiak
