Re: [selectors-api] Investigating NSResolver Alternatives

2008-11-23 Thread Cameron McCormack
This is moot now that NSResolver is gone from selector-api, but… Boris Zbarsky: The way I see it, all current impls should throw something if more than one arg is passed Lachlan Hunt: Which exception should be thrown? Is this something I should define in this spec, or is it

Re: [selectors-api] Investigating NSResolver Alternatives

2008-08-20 Thread Boris Zbarsky
Lachlan Hunt wrote: The way I see it, all current impls should throw something if more than one arg is passed Which exception should be thrown? Is this something I should define in this spec, or is it something for WebIDL or some other spec to deal with? Honestly, I don't care much on that

Re: [selectors-api] Investigating NSResolver Alternatives

2008-08-20 Thread Boris Zbarsky
Lachlan Hunt wrote: The developers implementing this in Opera has given me feedback saying that this shouldn't throw an exception because JS allows additional arguments to be passed to any method, including other DOM APIs, like getElementById(), etc. Is there a good reason why this should

Re: [selectors-api] Investigating NSResolver Alternatives

2008-08-20 Thread Jonas Sicking
Boris Zbarsky wrote: Lachlan Hunt wrote: The developers implementing this in Opera has given me feedback saying that this shouldn't throw an exception because JS allows additional arguments to be passed to any method, including other DOM APIs, like getElementById(), etc. Is there a good

Re: [selectors-api] Investigating NSResolver Alternatives

2008-08-20 Thread Anne van Kesteren
On Wed, 20 Aug 2008 08:26:30 +0200, Boris Zbarsky [EMAIL PROTECTED] wrote: Lachlan Hunt wrote: The way I see it, all current impls should throw something if more than one arg is passed Which exception should be thrown? Is this something I should define in this spec, or is it something for

Re: [selectors-api] Investigating NSResolver Alternatives

2008-08-20 Thread Lachlan Hunt
Jonas Sicking wrote: Boris Zbarsky wrote: Of course not throwing on extra arguments is indeed the easy path to implementation (and is what Gecko will be shipping, it looks like), so as long as you can live with the results as a spec writer it's all good by me. I think we should follow

Re: [selectors-api] Investigating NSResolver Alternatives

2008-08-16 Thread João Eiras
Unfortunately I don't think we can change how XPath parses things since there is already code out there that might rely on the current behavior. Might be worth looking into though. I don't want to worry about xpath, although that misfeautre bite me hard :) Chaging the behavior how I

Re: [selectors-api] Investigating NSResolver Alternatives

2008-08-16 Thread Jonas Sicking
João Eiras wrote: Unfortunately I don't think we can change how XPath parses things since there is already code out there that might rely on the current behavior. Might be worth looking into though. I don't want to worry about xpath, although that misfeautre bite me hard :) Chaging the

Re: [selectors-api] Investigating NSResolver Alternatives

2008-08-15 Thread João Eiras
Hi ! I vote for having a new light weight object to completely replace the current NSResolver, and then apply it to other DOM specs namely the XPath DOM. I had some of the problems we're discussing with the XPath DOM API, and obviously the same apply here. I exposed my problems at the

Re: [selectors-api] Investigating NSResolver Alternatives

2008-08-15 Thread Jonas Sicking
João Eiras wrote: Hi ! I vote for having a new light weight object to completely replace the current NSResolver, and then apply it to other DOM specs namely the XPath DOM. I had some of the problems we're discussing with the XPath DOM API, and obviously the same apply here. I exposed my

Re: [selectors-api] Investigating NSResolver Alternatives

2008-08-15 Thread Jonas Sicking
João Eiras wrote: On , Jonas Sicking [EMAIL PROTECTED] wrote: João Eiras wrote: Hi ! I vote for having a new light weight object to completely replace the current NSResolver, and then apply it to other DOM specs namely the XPath DOM. I had some of the problems we're discussing with the

Re: [selectors-api] Investigating NSResolver Alternatives

2008-07-16 Thread Lachlan Hunt
Boris Zbarsky wrote: Lachlan Hunt wrote: Given that IE, Webkit and Opera seem to be in favour of dropping NSResolver, if Mozilla will agree, I'm more than happy to do so OK. We talked it over, and this sounds like the best way going forward for now. I have stripped all requirements from

Re: [selectors-api] Investigating NSResolver Alternatives

2008-07-16 Thread Anne van Kesteren
On Wed, 16 Jul 2008 13:43:06 +0200, Lachlan Hunt [EMAIL PROTECTED] wrote: I have stripped all requirements from the spec relating to resolving namespace prefixes using an NSResolver. Although it still has the requirement to throw a NAMESPACE_ERR when namespace prefixes that need to be

Re: [selectors-api] Investigating NSResolver Alternatives

2008-07-16 Thread Boris Zbarsky
Lachlan Hunt wrote: Although it still has the requirement to throw a NAMESPACE_ERR when namespace prefixes that need to be resolved are encountered http://dev.w3.org/2006/webapi/selectors-api/ In theory it might be better to throw NOT_SUPPORTED_ERR so going forward you can distinguish

Re: [selectors-api] Investigating NSResolver Alternatives

2008-07-15 Thread Boris Zbarsky
Lachlan Hunt wrote: Given that IE, Webkit and Opera seem to be in favour of dropping NSResolver, if Mozilla will agree, I'm more than happy to do so OK. We talked it over, and this sounds like the best way going forward for now. -Boris

Re: [selectors-api] Investigating NSResolver Alternatives

2008-07-14 Thread Anne van Kesteren
On Mon, 14 Jul 2008 21:30:18 +0200, Boris Zbarsky [EMAIL PROTECTED] wrote: Anne van Kesteren wrote: How do I select all the inline SVG images on the page? div svg, p svg though it's not quite as thorough as your solution. Offhand, you're missing td, span, body to cover any sort of