Re: [whatwg] Use cases for Node.getElementById

2008-12-06 Thread Calogero Alex Baldacchino
Simon Pieters ha scritto: On Fri, 05 Dec 2008 19:19:04 +0100, Calogero Alex Baldacchino <[EMAIL PROTECTED]> wrote: [...] (I'm currently the editor of that proposal, currently located at http://simon.html5.org/specs/web-dom-core ) I'm reading it :-) And I have a few questions. First, is

Re: [whatwg] Use cases for Node.getElementById

2008-12-07 Thread Calogero Alex Baldacchino
João Eiras ha scritto: IMO, anyone suggesting a Node.getElementById clearly does not know very well how getElementById is supposed to work. There are ways to transverse a DOM tree currently, either DOM properties and methods, XPath, selectors API and such. Considering ids are required to be un

Re: [whatwg] Use cases for Node.getElementById

2008-12-07 Thread Simon Pieters
On Sun, 07 Dec 2008 04:09:01 +0100, Calogero Alex Baldacchino <[EMAIL PROTECTED]> wrote: I'm reading it :-) And I have a few questions. First, is it meant as the reference DOM Core for HTML 5 only, or in general (for other kinds of markup too)? In general. The 'children' attribute on th

Re: [whatwg] Use cases for Node.getElementById

2008-12-08 Thread Calogero Alex Baldacchino
Simon Pieters ha scritto: On Sun, 07 Dec 2008 04:09:01 +0100, Calogero Alex Baldacchino <[EMAIL PROTECTED]> wrote: I'm reading it :-) And I have a few questions. First, is it meant as the reference DOM Core for HTML 5 only, or in general (for other kinds of markup too)? In general. Ok.

Re: [whatwg] Use cases for Node.getElementById

2008-12-08 Thread Jonas Sicking
I see the Element interface no more contains methods to handle Attr nodes: since those are described as not being child nodes of an Element, in W3C specifications, there will be any other way to handle attributes as nodes, the 'nature' of Attr nodes is going to change, or is there a too little

Re: [whatwg] Use cases for Node.getElementById

2008-12-08 Thread Calogero Alex Baldacchino
Jonas Sicking ha scritto: I see the Element interface no more contains methods to handle Attr nodes: since those are described as not being child nodes of an Element, in W3C specifications, there will be any other way to handle attributes as nodes, the 'nature' of Attr nodes is going to change

Re: [whatwg] Use cases for Node.getElementById

2008-12-08 Thread ddailey
. cheers David - Original Message - From: "Calogero Alex Baldacchino" <[EMAIL PROTECTED]> To: "Jonas Sicking" <[EMAIL PROTECTED]> Cc: "WHAT Working Group" ; "Simon Pieters" <[EMAIL PROTECTED]> Sent: Monday, December 08, 2008 6:47

Re: [whatwg] Use cases for Node.getElementById

2008-12-09 Thread Calogero Alex Baldacchino
ddailey ha scritto: There are lots of times in which I've needed to examine one document by use of a script that resides inside another. Using lists of attributes to do that has been rather important, though if those lists were accessible as properties of objects rather than as nodes themselve

Re: [whatwg] Use cases for Node.getElementById

2008-12-09 Thread Garrett Smith
On Sat, Dec 6, 2008 at 7:09 PM, Calogero Alex Baldacchino <[EMAIL PROTECTED]> wrote: > Simon Pieters ha scritto: >> >> On Fri, 05 Dec 2008 19:19:04 +0100, Calogero Alex Baldacchino >> <[EMAIL PROTECTED]> wrote: >> >>> [...] >> >> (I'm currently the editor of that proposal, currently located at >> h

Re: [whatwg] Use cases for Node.getElementById

2008-12-10 Thread Calogero Alex Baldacchino
Garrett Smith ha scritto: On Sat, Dec 6, 2008 at 7:09 PM, Calogero Alex Baldacchino <[EMAIL PROTECTED]> wrote: Simon Pieters ha scritto: On Fri, 05 Dec 2008 19:19:04 +0100, Calogero Alex Baldacchino <[EMAIL PROTECTED]> wrote: [...] (I'm currently the editor of that pr

Re: [whatwg] Use cases for Node.getElementById

2008-12-10 Thread Garrett Smith
On Wed, Dec 10, 2008 at 8:10 AM, Calogero Alex Baldacchino <[EMAIL PROTECTED]> wrote: > Garrett Smith ha scritto: >> >> On Sat, Dec 6, 2008 at 7:09 PM, Calogero Alex Baldacchino >> <[EMAIL PROTECTED]> wrote: >> >>> >>> Simon Pieters ha scritto: >>> On Fri, 05 Dec 2008 19:19:04 +0100, Calo

Re: [whatwg] Use cases for Node.getElementById

2008-12-10 Thread Calogero Alex Baldacchino
Garrett Smith ha scritto: On Wed, Dec 10, 2008 at 8:10 AM, Calogero Alex Baldacchino <[EMAIL PROTECTED]> wrote: Garrett Smith ha scritto: On Sat, Dec 6, 2008 at 7:09 PM, Calogero Alex Baldacchino <[EMAIL PROTECTED]> wrote: Simon Pieters ha scritto: On Fri, 05 Dec 200

Re: [whatwg] Use cases for Node.getElementById

2008-12-25 Thread Ian Hickson
On Tue, 2 Dec 2008, Aaron Leventhal wrote: > > Maybe there is a deeper problem if copy & paste doesn't work right > because of IDs? > > Or maybe there should be a node.getDescendantById() method? I haven't done anything with the feedback on this thread (not quoted), because it is unclear what

[whatwg] Use cases for Node.getElementById (was: Re: Early feedback on header association algorithm)

2008-12-05 Thread Simon Pieters
On Fri, 05 Dec 2008 19:19:04 +0100, Calogero Alex Baldacchino <[EMAIL PROTECTED]> wrote: That's about the same then moving the getElementById method from the Document interface to the Node interface (Document inherits from Node, so the actual traversed subtree would change basing on the no

Re: [whatwg] Use cases for Node.getElementById (was: Re: Early feedback on header association algorithm)

2008-12-07 Thread João Eiras
IMO, anyone suggesting a Node.getElementById clearly does not know very well how getElementById is supposed to work. There are ways to transverse a DOM tree currently, either DOM properties and methods, XPath, selectors API and such. Considering ids are required to be unique in the context of