Re: ACTION-87: Selectors API

2006-05-12 Thread liorean
I've written some commentary on the Selectors API draft on WebGraphics. uri:http://web-graphics.com/2006/05/12/javascript-and-selectors/ -- David liorean Andersson uri:http://liorean.web-graphics.com/

Re: ACTION-87: Selectors API

2006-05-13 Thread liorean
On 13/05/06, Anne van Kesteren [EMAIL PROTECTED] wrote: On Sat, 13 May 2006 21:08:26 +0200, liorean [EMAIL PROTECTED] wrote: And StaticNodeList looks to me to be pretty array-like. Well, if StaticNodeList looks that way NodeList would look that way too and I'd therefore suggest raising

Re: Comments on element traversal specification...

2007-05-22 Thread liorean
transformations, overlays, most client side manipulation, if you want to write your own Selectors API for kicks, there are many cases where you are only interested in the elements tree. -- David liorean Andersson

Re: Comments on element traversl specification (multiple responses)

2007-05-28 Thread liorean
for XML processing, generation or editing, I'd agree. But for browser scripting this ability to entirely ignore non-element content is very useful. -- David liorean Andersson

Re: [whatwg] Setting innerHTML to null or undefined

2007-06-04 Thread liorean
will return the URI to the page. On Jun 4, 2007, at 5:45 PM, liorean wrote: Seems to me like they are simply using the ECMAScript ToString algorithm, unless I'm mistaken. That's probably a good thing to specify for this, too. On 05/06/07, Maciej Stachowiak [EMAIL PROTECTED] wrote: I think DOM

Re: [whatwg] Setting innerHTML to null or undefined

2007-06-05 Thread liorean
, liorean wrote: Well, IE doesn't throw INDEX_SIZE_ERR, the others do, so I guess there is that compatibility argument. On 05/06/07, Maciej Stachowiak [EMAIL PROTECTED] wrote: IE's DOM behavior is so divergent from the standard in so many areas that most sites and JS libraries have two separate code

Re: Prototype chain for objects that implement multiple interfaces

2007-06-06 Thread liorean
liorean: (The ECMAScript built-in constructors all follow the pattern of having [[Call]], so their [[Class]] is Function instead and their [[Prototype]] is the initial Function.prototype. The DOM constructors don't have [[Call]] so their [[Class]] should be Object instead. Or some

Re: [selectors-api] Minor comments on the spec text

2007-06-25 Thread liorean
say let the default take place. I.e. in ECMAScript the this value would be the global object (window in browsers). -- David liorean Andersson

Re: [selectors-api] Minor comments on the spec text

2007-06-26 Thread liorean
On 26/06/07, Lachlan Hunt [EMAIL PROTECTED] wrote: Lachlan Hunt wrote: liorean wrote: I think it wouldn't hurt to specify that an exception should be propagated (or rethrown?) out to the caller. Surely, if it were necessary to state that, it should be in DOM Level 3 Core where

Re: [XHR2] responseBody (byte array)

2007-07-30 Thread liorean
. -- David liorean Andersson

Re: Implementing HTMLDocument on all Documents (detailed review of the DOM)

2007-08-21 Thread liorean
to the Element interface: * getElementsByClassName Does this make sense on Element? I mean, the class attribute and it's semantics are HTML/XHTML specific. -- David liorean Andersson

Re: [Bindings] stringify

2007-12-31 Thread liorean
been changed.) I think ES4 will make the standard library global constructor object bindings {ReadOnly, DontDelete}, but IIRC there's been some discussion that it might break more scripts than it helps, so it might not happen. -- David liorean Andersson

Re: [selectors-api] Why have two identical differently named interfaces?

2008-03-12 Thread liorean
extension that only makes sence on elements and not on any other nodes - element-rooted instead of subtree-only-but-document-rooted queries. (I don't see any real benefit from such an interface though, but I've seen the idea mentioned on the mailing lists.) -- David liorean Andersson

Re: [selectors-api] Why have two identical differently named interfaces?

2008-03-13 Thread liorean
:46 AM, liorean wrote: I can actually imagine one extension that only makes sence on elements and not on any other nodes - element-rooted instead of subtree-only-but-document-rooted queries. (I don't see any real benefit from such an interface though, but I've seen the idea mentioned

Re: [Bindings] 'new' behavior on interface objects

2008-03-19 Thread liorean
feature was seen as inappropriate, and something that shouldn't be used for node creation in the DOM. -- David liorean Andersson

Re: [selectors-api] Why have two identical differently named interfaces?

2008-03-19 Thread liorean
that implement either the Document, Element or DocumentFragment interfaces. Why not Entity and EntityReference as well? Both types can parent nodes in a similar way to DocumentFragment. -- David liorean Andersson

Re: [Bindings] [[Delete]], hidden operations, missing arguments

2008-04-10 Thread liorean
with too few arguments is handled as if the missing arguments were filled in with ECMAScript undefined, which would cause a TYPE_MISMATCH_ERR exception to be thrown (unless the DOM interface explicitly allows Undefined I guess...). Is that a reasonable behaviour for the DOM as well? -- David liorean

[bindings] Regarding the algorithm of 4.2.2. Interface prototype object

2008-04-10 Thread liorean
of a prototype object will always be looked up before that member will be looked up in it's own prototype object. -- David liorean Andersson