W3C home > Mailing lists > Public > public-html@w3.org > January 2009

Re: [[Get]] method on HTMLDocument (detailed review of the DOM)

From: Ian Hickson <ian@hixie.ch>
Date: Tue, 13 Jan 2009 07:41:38 +0000 (UTC)
To: Maciej Stachowiak <mjs@apple.com>
Cc: Simon Pieters <simonp@opera.com>, public-html <public-html@w3.org>
Message-ID: <Pine.LNX.4.62.0901130037560.7181@hixie.dreamhostps.com>

On Fri, 5 Oct 2007, Maciej Stachowiak wrote:
> On Oct 5, 2007, at 9:55 AM, Simon Pieters wrote:
> >
> > (This is part of my detailed review of the Document Object Model 
> > section.)
> > 
> > The spec doesn't say what UAs are to do with the [[Get]] method on the 
> > HTMLDocument interface. There are some interoperability problems. See:
> > 
> > http://simon.html5.org/test/html/dom/interfaces/HTMLDocument/Get-method/demos/
> 
> We have extensive test cases for this:
> 
> http://trac.webkit.org/projects/webkit/browser/trunk/LayoutTests/fast/dom/HTMLDocument/document-special-properties.html 
> http://trac.webkit.org/projects/webkit/browser/trunk/LayoutTests/fast/dom/HTMLDocument/document-special-properties-expected.txt
> 
> One thing both IE and Safari do that your description below missed is 
> that <img> elements can be found by id, but only if they also have a 
> name attribute (regardless of the value of the name).

I've added this to the spec too.


> We have run into the <embed>-in-<object> conflict with id/name lookup on 
> the document as well, and have not thought of a good way to solve it 
> given the constraint of actually parsing the <object>'s children in all 
> cases.

The spec tries to use Simon's suggestion of ignoring the <object> elements 
if they contain any contents.


> We also have a similar test case for Window's special property access:
> 
> http://trac.webkit.org/projects/webkit/browser/trunk/LayoutTests/fast/dom/Window/window-special-properties.html
> http://trac.webkit.org/projects/webkit/browser/trunk/LayoutTests/fast/dom/Window/window-special-properties-expected.txt
> 
> This case is even less interoperable and Safari does something that's a
> compromise between IE and Firefox.

This led to:

   https://bugs.webkit.org/show_bug.cgi?id=23284

I've updated the spec to mostly match IE here.

-- 
Ian Hickson               U+1047E                )\._.,--....,'``.    fL
http://ln.hixie.ch/       U+263A                /,   _.. \   _\  ;`._ ,.
Things that are impossible just take longer.   `._.-(,_..'--(,_..'`-.;.'
Received on Tuesday, 13 January 2009 07:42:17 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 9 May 2012 00:16:28 GMT