Re: [selectors-api2] Seeking status and plans

2013-10-03 Thread Lachlan Hunt
was referring to this http://www.w3.org/TR/dom/ I didn't realise that was being taken over by the HTMLWG, as I haven't been actively following spec stuff for a while as I've been busy with other work. I guess they'll take care of it, then, so never mind. -- Lachlan Hunt http://lachy.id.au/

Re: [selectors-api2] Seeking status and plans

2013-10-02 Thread Lachlan Hunt
-publish it as a NOTE, and get a draft of DOM that includes selectors api features published. -- Lachlan Hunt http://lachy.id.au/

Re: [selectors-api] Matching of :scope in document.querySelector(All)

2012-12-03 Thread Lachlan Hunt
, but keep the latter two with explicit refNodes parameters matching nothing. -- Lachlan Hunt http://lachy.id.au/ http://www.opera.com/

Re: CfC: publish WD of DOM; deadline December 2

2012-11-29 Thread Lachlan Hunt
. Does that address your concerns? I have committed a WD ready copy, with the publication date tentatively set for 6 December. http://dvcs.w3.org/hg/domcore/raw-file/tip/Overview.html -- Lachlan Hunt http://lachy.id.au/ http://www.opera.com/

Re: [selectors-api] Reference to obsolete ECMAScript Language spec version

2012-11-15 Thread Lachlan Hunt
On 2012-10-29 14:38, Norbert Lindenberg wrote: The current drafts of the Selectors API specifications [1, 2, 3] refer to the third edition of the ECMAScript Language Specification, The references have been updated. Thank you. -- Lachlan Hunt http://lachy.id.au/ http://www.opera.com/

[selectors-api] Editoral Changes and Test Suite Progress

2012-11-15 Thread Lachlan Hunt
to make this happen as soon as possible. -- Lachlan Hunt http://lachy.id.au/ http://www.opera.com/

[selectors-api] Updated Testsuite

2012-10-22 Thread Lachlan Hunt
/SelectorsAPI/tests/submissions/Opera/ -- Lachlan Hunt - Opera Software http://lachy.id.au/ http://www.opera.com/

Re: [selectors-api] Updated Testsuite

2012-10-22 Thread Lachlan Hunt
On 2012-10-22 16:29, Boris Zbarsky wrote: On 10/22/12 6:10 AM, Lachlan Hunt wrote: * hasFeature() returns false Just as a note, this is a pretty pointless test, and the language about it should be removed from this spec, assuming http://dom.spec.whatwg.org/#dom-domimplementation-hasfeature

Re: [selectors-api] RfC: LCWD of Selectors API Level 1; deadline July 19

2012-10-08 Thread Lachlan Hunt
On 2012-08-06 13:25, Lachlan Hunt wrote: On 2012-08-06 13:08, Kang-Hao (Kenny) Lu wrote: (12/07/31 20:06), Arthur Barstow wrote: On 7/19/12 11:15 PM, ext Kang-Hao (Kenny) Lu wrote: http://lists.w3.org/Archives/Public/public-webapps/2012JanMar/thread#msg518 I think this is a very minor issue

Re: [selectors-api] Kudos on find/findAll, feedback on spec readability

2012-10-04 Thread Lachlan Hunt
in due course. They hadn't been added yet due to the prior instability of the new API design and their low priority. However, feel free to contribute some examples if you like and I will consider including them. -- Lachlan Hunt - Opera Software http://lachy.id.au/ http://www.opera.com/

Re: [selectors-api] RfC: LCWD of Selectors API Level 1; deadline July 19

2012-08-06 Thread Lachlan Hunt
when they are used. 2. Allow comments, but define that unclosed comments should throw a SyntaxError. 3. Allow comments, define that unclosed comments are silently ignored. -- Lachlan Hunt - Opera Software http://lachy.id.au/ http://www.opera.com/

[selectors-api] New Implementation Report for Updated Testsuite

2012-07-03 Thread Lachlan Hunt
/2006/webapi/selectors-api-testsuite/level1-baseline-report.html [2] http://lists.w3.org/Archives/Public/public-webapps-testsuite/2012Jun/0009.html -- Lachlan Hunt - Opera Software http://lachy.id.au/ http://www.opera.com/

Re: [selectors-api] RfC: LCWD of Selectors API Level 1; deadline July 19

2012-06-30 Thread Lachlan Hunt
what to do when the methods were invoked. I've now backported this from that spec, but omitted all things related to :scope. The changes are in the editor's drafts. http://dev.w3.org/2006/webapi/selectors-api/ http://dev.w3.org/2006/webapi/selectors-api2/ -- Lachlan Hunt - Opera Software http

Re: CfC: publish a LCWD of Selectors API Level 1; deadline June 25

2012-06-26 Thread Lachlan Hunt
will be considered as agreement with the proposal. This draft has been prepared for publication and checked into the repository. -- Lachlan Hunt - Opera Software http://lachy.id.au/ http://www.opera.com/

Re: CfC: publish WD of Selectors API Level 2; deadline June 25

2012-06-26 Thread Lachlan Hunt
or concerns about this proposal, please reply to this e-mail by June 25 at the latest. This draft has been prepared for publication and checked into the repository. -- Lachlan Hunt - Opera Software http://lachy.id.au/ http://www.opera.com/

Re: [selectors-api] NAMESPACE_ERR or SYNTAX_ERR when both applied

2012-06-21 Thread Lachlan Hunt
On 2012-06-18 11:06, Lachlan Hunt wrote: Since it seems there are no objections to the latter option, and a few people in favour of that, I've tentatively updated both drafts to reflect this. It now states: If the group of selectors include namespace prefixes that need to be resolved

Re: [selectors-api] Consider backporting find() behavior to querySelector()

2012-06-21 Thread Lachlan Hunt
On 2012-06-20 17:46, Marat Tanalin | tanalin.com wrote: 20.06.2012, 18:14, Lachlan Hunt lachlan.h...@lachy.id.au: 4. Support for returning elements that are not descendants of the context object. This feature allows a selector to be constructed such that it matches an element anywhere

Re: Bikesheds Re: [selectors-api] Consider backporting find() behavior to querySelector()

2012-06-21 Thread Lachlan Hunt
On 2012-06-21 15:56, Kang-Hao (Kenny) Lu wrote: (12/06/20 22:26), Lachlan Hunt wrote: On 2012-06-20 10:42, Charles McCathieNevile wrote: In other words we have the same arguments that we had five years ago, when we settled on querySelector as the one that provoked least objection

Selectors API Implementation Report

2012-06-21 Thread Lachlan Hunt
/001-report.html -- Lachlan Hunt - Opera Software http://lachy.id.au/ http://www.opera.com/

Re: [selectors-api] Consider backporting find() behavior to querySelector()

2012-06-20 Thread Lachlan Hunt
querySelectorAll() and sometimes switches to .getElementById() or document.body. -- Lachlan Hunt - Opera Software http://lachy.id.au/ http://www.opera.com/

Re: [selectors-api] NAMESPACE_ERR or SYNTAX_ERR when both applied

2012-06-18 Thread Lachlan Hunt
a SYNTAX_ERR exception I also removed the note about non-namespace supporting implementations throwing a syntax error instead of a namespace error. http://dev.w3.org/2006/webapi/selectors-api/#resolving-namespaces http://dev.w3.org/2006/webapi/selectors-api2/#resolving-namespaces -- Lachlan Hunt

Re: Updates to Selectors API

2012-06-18 Thread Lachlan Hunt
me to start a CfC to publish a new WD of v2, just let me know. Yes please. -- Lachlan Hunt - Opera Software http://lachy.id.au/ http://www.opera.com/

Re: [selectors-api] NAMESPACE_ERR or SYNTAX_ERR when both applied

2012-06-17 Thread Lachlan Hunt
scripts performing any special error handling for namespace errors that differs from other syntax errors. Is there any reason we should keep this distinction? [1] https://github.com/jquery/sizzle/blob/master/sizzle.js -- Lachlan Hunt - Opera Software http://lachy.id.au/ http://www.opera.com/

Updates to Selectors API

2012-06-14 Thread Lachlan Hunt
it back to Selectors API without a version number and move on. (This is my preferred approach). http://dev.w3.org/2006/webapi/selectors-api/ http://dev.w3.org/2006/webapi/selectors-api2/ -- Lachlan Hunt - Opera Software http://lachy.id.au/ http://www.opera.com/

Re: Proposed Specification for find/findAll/matches

2011-12-19 Thread Lachlan Hunt
On 2011-12-12 17:57, Boris Zbarsky wrote: On 12/12/11 6:07 AM, Lachlan Hunt wrote: 2. These new methods for Element may be split out to a separate interface that omits the refElements and and refNodes parameters. Yes, please. There's no point having the same interface if the behavior

Re: Proposed Specification for find/findAll/matches

2011-12-13 Thread Lachlan Hunt
On 2011-12-12 17:57, Boris Zbarsky wrote: On 12/12/11 6:07 AM, Lachlan Hunt wrote: Given a selector list as input to the method, trim whitespace and then for each complex selector, run the first step that applies: (Note: if the selector list is , then there are 0 complex selectors in the list

Proposed Specification for find/findAll/matches

2011-12-12 Thread Lachlan Hunt
|compound or simple selector, then do not prepend :scope. |e.g. :scope, div:scope.foo, div :scope p | | 5. Otherwise, prepend :scope and a descendant combinator. Finally, return the modified list of complex selectors. -- Lachlan Hunt - Opera Software http://lachy.id.au/ http

Re: Web IDL sequenceT and item() method

2011-12-12 Thread Lachlan Hunt
generic numerically indexed object. e.g. These should all work var list = document.getElementsByTagName(section) document.querySelectorAll(:scopeh1, list) document.querySelectorAll(:scopeh1, $(section)) // JQuery $() document.querySelectorAll(:scopeh1, [elm1, elm2, elm3]) -- Lachlan Hunt - Opera

Re: QSA, the problem with :scope, and naming

2011-12-07 Thread Lachlan Hunt
for, or at least a version of JQuery that implements proxybind? -- Lachlan Hunt - Opera Software http://lachy.id.au/ http://www.opera.com/

Re: Remaining Problems with Explicit :scope Switching in find/findAll

2011-11-27 Thread Lachlan Hunt
, that will match the span element. -- Lachlan Hunt - Opera Software http://lachy.id.au/ http://www.opera.com/

Re: XPath and find/findAll methods

2011-11-25 Thread Lachlan Hunt
On 2011-11-24 14:49, Robin Berjon wrote: So, now for the money question: should we charter this? Only if someone is volunteering to be the editor and drafts a spec. -- Lachlan Hunt - Opera Software http://lachy.id.au/ http://www.opera.com/

Re: Remaining Problems with Explicit :scope Switching in find/findAll

2011-11-25 Thread Lachlan Hunt
a group of selectors (selectors 3 terminology), which is equivalent to a selector list (selectors 4). But :scope is still only useful when ref nodes are supplied. -- Lachlan Hunt - Opera Software http://lachy.id.au/ http://www.opera.com/

Re: [Selectors API 2] Is matchesSelector stable enough to unprefix in implementations?

2011-11-25 Thread Lachlan Hunt
the code. Selectors in selector lists are always independent of each other, so authors who use a selector list would likely assume that one doesn't affect how another in the list matches. It would seem far more confusing for authors to do it using the other alternatives. -- Lachlan Hunt - Opera

Re: [Selectors API 2] Is matchesSelector stable enough to unprefix in implementations?

2011-11-24 Thread Lachlan Hunt
there will not be two alternative matches methods. -- Lachlan Hunt - Opera Software http://lachy.id.au/ http://www.opera.com/

Remaining Problems with Explicit :scope Switching in find/findAll (was: Re: [Selectors API 2] Is matchesSelector stable enough to unprefix in implementations?)

2011-11-24 Thread Lachlan Hunt
issues, what happens in this case? foo.find(label /for/ input+:scope~span) -- Lachlan Hunt - Opera Software http://lachy.id.au/ http://www.opera.com/

Re: [Selectors API 2] Is matchesSelector stable enough to unprefix in implementations?

2011-11-24 Thread Lachlan Hunt
On 2011-11-25 01:07, Sean Hogan wrote: On 24/11/11 7:46 PM, Lachlan Hunt wrote: On 2011-11-23 23:38, Sean Hogan wrote: - If you want to use selectors with :scope implied at the start of each selector in the selector list (as most js libs currently do) then you use find / findAll / matches

Re: XPath and find/findAll methods

2011-11-22 Thread Lachlan Hunt
/Release:jQuery_1.2#XPath_Compatibility_Plugin -- Lachlan Hunt - Opera Software http://lachy.id.au/ http://www.opera.com/

Re: XPath and find/findAll methods

2011-11-22 Thread Lachlan Hunt
, not just elements. Could you describe a clear use case where this is useful for your needs? -- Lachlan Hunt - Opera Software http://lachy.id.au/ http://www.opera.com/

Re: QSA, the problem with :scope, and naming

2011-11-15 Thread Lachlan Hunt
/webapi/selectors-api2/#nodeselector See the refElement/refNodes parameters which specify elements matched by :scope. -- Lachlan Hunt - Opera Software http://lachy.id.au/ http://www.opera.com/

[selectors-api] Requirements and Use Cases for Scoped Methods

2011-10-21 Thread Lachlan Hunt
weeks. I'll review any additional discussion and attempt to draft up a possible solution in the spec after I get back from holidays. -- Lachlan Hunt - Opera Software http://lachy.id.au/ http://www.opera.com/

Re: QSA, the problem with :scope, and naming

2011-10-20 Thread Lachlan Hunt
Array when this issue was originally discussed a few years ago. -- Lachlan Hunt - Opera Software http://lachy.id.au/ http://www.opera.com/

Re: QSA, the problem with :scope, and naming

2011-10-20 Thread Lachlan Hunt
that live node lists were a mistake and that it would have been better if static Arrays were returned, we are stuck with them and cannot change that. -- Lachlan Hunt - Opera Software http://lachy.id.au/ http://www.opera.com/

Re: QSA, the problem with :scope, and naming

2011-10-20 Thread Lachlan Hunt
. Though I suspect the former is very rare, and the latter doesn't work in all browsers. -- Lachlan Hunt - Opera Software http://lachy.id.au/ http://www.opera.com/

Re: QSA, the problem with :scope, and naming

2011-10-20 Thread Lachlan Hunt
basis, so the above would be equivalent to: document.querySelector(:scope + div, :scope div, foo); -- Lachlan Hunt - Opera Software http://lachy.id.au/ http://www.opera.com/

Re: QSA, the problem with :scope, and naming

2011-10-20 Thread Lachlan Hunt
) With the selector pre-processing, that selector becomes section:scope+div, :scope div, :scope~p span, .x :scopeh1+span -- Lachlan Hunt - Opera Software http://lachy.id.au/ http://www.opera.com/

Re: QSA, the problem with :scope, and naming

2011-10-19 Thread Lachlan Hunt
) // Matches sibling p elements div style scoped :scope+p { ... } /* Matches nothing */ /style div p.../p -- Lachlan Hunt - Opera Software http://lachy.id.au/ http://www.opera.com/

Re: QSA, the problem with :scope, and naming

2011-10-19 Thread Lachlan Hunt
/selectors-api2/Overview.html?rev=1.29;content-type=text%2Fhtml#processing-selectors -- Lachlan Hunt - Opera Software http://lachy.id.au/ http://www.opera.com/

Re: QSA, the problem with :scope, and naming

2011-10-19 Thread Lachlan Hunt
(:scopep); That would be equivalent to: document.querySelectorAll(:scope :scopep, el); Which won't match anything. That might keep things simpler from an implementation perspective and doesn't sacrifice any functionality being requested. -- Lachlan Hunt - Opera Software http://lachy.id.au

Re: QSA, the problem with :scope, and naming

2011-10-19 Thread Lachlan Hunt
document.querySelectorAll(:scope+p, list); Thus, if we do introduce the proposed method, should it behave similarly, but with the implied rather than explicit :scope? e.g. document.findAll(+p, list); -- Lachlan Hunt - Opera Software http://lachy.id.au/ http://www.opera.com/

Re: [WebIDL][Selectors-API] Stringifying null for DOMString attributes and properties

2011-05-10 Thread Lachlan Hunt
problems in the past with some CSSOM properties, although they have since been defined as nullable types in that spec. -- Lachlan Hunt - Opera Software http://lachy.id.au/ http://www.opera.com/

Re: [WebIDL][Selectors-API] Stringifying null for DOMString attributes and properties

2011-05-09 Thread Lachlan Hunt
On 2011-05-07 16:03, Lachlan Hunt wrote: (I don't have results for IE yet because the testharness script I used to write the tests doesn't work in IE.) I've now tested IE9, which did give me results. The following properties are all stringified to . * BODY .text, .bgColor, .link, .vLink

Re: [WebIDL][Selectors-API] Stringifying null for DOMString attributes and properties

2011-05-07 Thread Lachlan Hunt
On 2011-05-06 15:45, Boris Zbarsky wrote: On 5/6/11 6:10 AM, Lachlan Hunt wrote: Recently, in order to resolve a site compatibility issue caused by us stringifying to null for some properties, we made all DOMString APIs consistent in their handling of null, such that they now stringify

[WebIDL][Selectors-API] Stringifying null for DOMString attributes and properties

2011-05-06 Thread Lachlan Hunt
to the behaviour they had shipped in Firefox 3.6, so it's unlikely that reverting this will result in any web compatibility issues. [1] http://dev.w3.org/2006/webapi/WebIDL/#es-DOMString -- Lachlan Hunt - Opera Software http://lachy.id.au/ http://www.opera.com/

Re: More questions about contextual reference nodes

2011-04-13 Thread Lachlan Hunt
On 2011-04-13 04:43, Cameron McCormack wrote: Lachlan Hunt: This seems to differ from the algorithm given for T[], which requires that the object be either an array host object or a native object, which would not handle the JQuery case. The sequenceT type seems more generic than

Re: More questions about contextual reference nodes

2011-04-13 Thread Lachlan Hunt
On 2011-04-13 06:32, Cameron McCormack wrote: Lachlan Hunt: OK. Then I'm not sure what the practical difference between the Element[] or sequenceElement would be then, nor which one to use. ... the only difference is that with Element[] you can distinguish between null and an array

Re: More questions about contextual reference nodes

2011-04-10 Thread Lachlan Hunt
On 2011-04-09 19:14, Boris Zbarsky wrote: On 4/9/11 6:27 AM, Lachlan Hunt wrote: There were cases in JQuery where the script wanted to iteratively run a selector on all nodes in a collection, and return elements that are descendants of those elements. This allows :scope to be used in those

Re: Support for matchesSelector()

2011-04-10 Thread Lachlan Hunt
On 2011-04-08 16:41, Boris Zbarsky wrote: On 4/8/11 6:44 AM, Lachlan Hunt wrote: We are thinking that implementing with a prefix as Element.oMatchesSelector() is unnecessary Well, one obvious question is whether we now have good reasons to believe that the name and number/meaning

Re: More questions about contextual reference nodes

2011-04-10 Thread Lachlan Hunt
On 2011-04-10 13:30, Lachlan Hunt wrote: But is jquery's collection a JS Array? The object returned by the $() function isn't an array. It's a custom object that mimics the functionality of an array... var p = $(p.foo) Var a = $(a); a[0].matchesSelector(:scopea, p) ... Would it be useful

Re: More questions about contextual reference nodes

2011-04-09 Thread Lachlan Hunt
an exception, or should it just accept that ref[0] was an element and use that? For NodeLists, should it accept any NodeList and only use the Element nodes? e.g. element.childNodes may contain text or comment nodes. -- Lachlan Hunt - Opera Software http://lachy.id.au/ http://www.opera.com/

Support for matchesSelector()

2011-04-08 Thread Lachlan Hunt
://bugzilla.mozilla.org/show_bug.cgi?id=518003 [2] https://bugs.webkit.org/show_bug.cgi?id=29703 -- Lachlan Hunt - Opera Software http://lachy.id.au/ http://www.opera.com/

Re: Support for matchesSelector()

2011-04-08 Thread Lachlan Hunt
On 2011-04-08 18:22, Boris Zbarsky wrote: On 4/8/11 6:44 AM, Lachlan Hunt wrote: 2. Using the :scope selector in existing implementations will throw a syntax error. On which note, it seems like :scope will first show up prefixed as well, right? Yes, that's reasonable. In which case, do we

Selectors API IDL Issues

2011-04-01 Thread Lachlan Hunt
, though I'm not sure why. So I would like to get clarification whether that is in fact the case, and whether [NoInterfaceObject] really is what I should be using here. [1] http://lists.w3.org/Archives/Public/public-web-perf/2011Mar/0058.html -- Lachlan Hunt - Opera Software http://lachy.id.au

Re: Status of Selectors API Level 1 Candidate

2010-05-05 Thread Lachlan Hunt
/2006/webapi/selectors-api-testsuite/ [2] http://lists.w3.org/Archives/Public/public-webapps/2009AprJun/1221.html -- Lachlan Hunt - Opera Software http://lachy.id.au/ http://www.opera.com/

Re: Steps to creating a browser standard for the moz-icon:// scheme

2010-01-27 Thread Lachlan Hunt
. It seems much more likely that developers would want to have all icons used to be designed with a common style. -- Lachlan Hunt - Opera Software http://lachy.id.au/ http://www.opera.com/

Re: Steps to creating a browser standard for the moz-icon:// scheme

2010-01-27 Thread Lachlan Hunt
?html;32 or about:icon?ext=htmlsize=32 (though, I think being shorter and avoiding '' is better, so authors don't have to bother escaping it in their HTML) -- Lachlan Hunt - Opera Software http://lachy.id.au/ http://www.opera.com/

Re: Steps to creating a browser standard for the moz-icon:// scheme

2010-01-26 Thread Lachlan Hunt
interoperability by standardising this? Are these icons meant to be used by web content, or meant only for internal use by the browser? -- Lachlan Hunt - Opera Software http://lachy.id.au/ http://www.opera.com/

Re: Publishing Selectors API Level 2 as an FPWD?

2010-01-11 Thread Lachlan Hunt
points to, and then follows the normal rules for evaluating querySelector. Given that selector, any descendents of refNode that are also descendents of element (the context node) will be matched, the first of which will be returned. -- Lachlan Hunt - Opera Software http://lachy.id.au/ http

Re: [selectors-api2] Should we keep the queryScopedSelector methods? (was: Publishing Selectors API Level 2 as an FPWD?)

2010-01-11 Thread Lachlan Hunt
to: document.querySelectorAll(:scope+p, elm); Anyway, since the CfC for FPWD has already begun, I'd rather not make any major changes till afterwards. I'd also like to hear from a few other people on this issue. -- Lachlan Hunt - Opera Software http://lachy.id.au/ http://www.opera.com/

Re: Publishing Selectors API Level 2 as an FPWD?

2010-01-11 Thread Lachlan Hunt
/0317.html -- Lachlan Hunt - Opera Software http://lachy.id.au/ http://www.opera.com/

Re: Publishing Selectors API Level 2 as an FPWD?

2010-01-10 Thread Lachlan Hunt
Sean Hogan wrote: On 8/01/10 1:19 AM, Lachlan Hunt wrote: can we publish Selectors API Level 2 as an FPWD? http://dev.w3.org/2006/webapi/selectors-api2/ FYI, it seems the whole Status of this Document hasn't been updated for Selectors-API2. Yeah, that will get fixed up when I get the spec

Publishing Selectors API Level 2 as an FPWD?

2010-01-07 Thread Lachlan Hunt
Mozilla and WebKit have begun their implementation of matchesSelector, which is defined in it. The editor's draft is here. http://dev.w3.org/2006/webapi/selectors-api2/ -- Lachlan Hunt - Opera Software http://lachy.id.au/ http://www.opera.com/

Re: [selectors-api] querySelector with namespace

2009-11-30 Thread Lachlan Hunt
Robin Berjon wrote: On Nov 26, 2009, at 15:07 , Lachlan Hunt wrote: Jonathan Watt wrote: Nevertheless, that doesn't mean that Web content shouldn't be able to process XML that uses xml:id using script and present the processed information to the user using content and semantics that *does

Re: [selectors-api] querySelector with namespace

2009-11-30 Thread Lachlan Hunt
help if you could find some other APIs and illustrate with some real world sites that use them, where namespace-supporting APIs are utilised for good reasons on the client side. -- Lachlan Hunt - Opera Software http://lachy.id.au/ http://www.opera.com/

Re: Selectors CR criteria

2009-11-27 Thread Lachlan Hunt
don't actually try to implement the methods themselves. They just implement somewhat compatible functionality and expose it on their own objects (e.g. $(divp); instead of document.querySelector(divp);). -- Lachlan Hunt - Opera Software http://lachy.id.au/ http://www.opera.com/

Re: [selectors-api] querySelector with namespace

2009-11-26 Thread Lachlan Hunt
. -- Lachlan Hunt - Opera Software http://lachy.id.au/ http://www.opera.com/

Re: CfC - publish Selectors API as CR

2009-11-26 Thread Lachlan Hunt
.org/Archives/Public/public-webapps/2009AprJun/1221.html -- Lachlan Hunt - Opera Software http://lachy.id.au/ http://www.opera.com/

Re: [selectors-api] querySelector with namespace

2009-11-26 Thread Lachlan Hunt
selector would work fine? -- Lachlan Hunt - Opera Software http://lachy.id.au/ http://www.opera.com/

Re: CfC - publish Selectors API as CR

2009-11-26 Thread Lachlan Hunt
Lachlan Hunt wrote: There must be at least two complete, independent implementations, each of which must pass 100% of the baseline testsuite and should pass additional tests, dependent on the following conditions: ... The current state of implementations is as follows: Minefield: Baseline

Re: CfC - publish Selectors API as CR

2009-11-26 Thread Lachlan Hunt
Boris Zbarsky wrote: On 11/26/09 9:58 AM, Lachlan Hunt wrote: Actually, correction. Minefield and Opera don't meet the condition if we keep the shipping requirement in the exit criteria. Which imo we should. I don't think we want to be opening up that loophole. The Gecko 1.9.2 branch builds

Re: [selectors-api] Test Suite Progress

2009-11-24 Thread Lachlan Hunt
Lachlan Hunt wrote: I have now split the test suite up into 3 files, similar to how I prevoiusly described [1]: 1. Baseline Tests: HTML with CSS Level 2.1 Selectors. 2. Additional Tests: HTML with Selectors Level 3. 3. Additional Tests: XHTML+SVG with Selectors Level 3. http://dev.w3.org/2006

Re: CfC - publish Selectors API as CR

2009-11-18 Thread Lachlan Hunt
~/2006/webapi/selectors-api/Overview.html?rev=1.101content-type=text/html;%20charset=UTF-8 I'll make all the necessary editorial changes to get it ready for CR when I find out what the publication date will be. -- Lachlan Hunt - Opera Software http://lachy.id.au/ http://www.opera.com/

Selectors API 2 Status

2009-11-04 Thread Lachlan Hunt
. [1] http://dev.w3.org/2006/webapi/selectors-api2/ [2] http://www.w3.org/Bugs/Public/buglist.cgi?product=WebAppsWGcomponent=Selectors%20API [3] http://lists.w3.org/Archives/Public/public-webapps/2009JulSep/1198.html -- Lachlan Hunt - Opera Software http://lachy.id.au/ http://www.opera.com/

Re: [selectors-api] Summary of Feature Requests for v2

2009-09-28 Thread Lachlan Hunt
a selector like em as being equivalent to :referenceem. I also defined the :reference pseudo class in the spec (formerly known as :scope in previous discussions) to match the contextual reference elements. -- Lachlan Hunt - Opera Software http://lachy.id.au/ http://www.opera.com/

Re: [selectors-api] Scoped Selectors

2009-09-27 Thread Lachlan Hunt
Boris Zbarsky wrote: On 9/26/09 4:36 PM, Lachlan Hunt wrote: A scoped selector string is a string that begins with an exclamation point followed by a the remainder of the selector. This assumes that '!' will never be allowed at the beginning of a CSS selector, right? It does

Re: [selectors-api] Scoped Selectors

2009-09-26 Thread Lachlan Hunt
or not such a use case is significant. It seems more natural to want to restrict the results to those within the same tree. See the current editors draft for more details. http://dev.w3.org/2006/webapi/selectors-api2/ -- Lachlan Hunt - Opera Software http://lachy.id.au/ http://www.opera.com/

Re: [selectors-api] Scoped Selectors

2009-09-25 Thread Lachlan Hunt
for the cases where they're using custom pseudo-classes not supported by the browser) One possible modification I'm considering is introducing a separate factory method for creating implied scope selectors: createScopedSelector(selector); rather than using a boolean parameter. -- Lachlan Hunt

Re: [selectors-api] Summary of Feature Requests for v2

2009-09-24 Thread Lachlan Hunt
(). It was discussed a couple of days ago in IRC. It's based on the functionality provided and needed by javascript libraries. Garrett Smith wrote: Lachlan Hunt wrote: div2.matchesSelector(:scope~div, div1); The matching seems backwards. Should be on the matcher, instead of the element? I don't

Re: [selectors-api] Summary of Feature Requests for v2

2009-09-24 Thread Lachlan Hunt
Lachlan Hunt wrote: Sean Hogan wrote: I think a couple of those features are pretty low priority: - I don't see the point of collective queries on NodeLists. Are there any references for the proposal? Otherwise I can't think of any useful queries that can't already be achieved with a single

Re: [selectors-api] Summary of Feature Requests for v2

2009-09-24 Thread Lachlan Hunt
it tries to create it. Otherwise, it will be valid. -- Lachlan Hunt - Opera Software http://lachy.id.au/ http://www.opera.com/

Re: [selectors-api] Summary of Feature Requests for v2

2009-09-24 Thread Lachlan Hunt
via querySelector*() or getElementsBy*(), or wherever else. -- Lachlan Hunt - Opera Software http://lachy.id.au/ http://www.opera.com/

Re: [selectors-api] Summary of Feature Requests for v2

2009-09-24 Thread Lachlan Hunt
until we can create arbitrary NodeLists. It would simplify the issues that John described in his last e-mail, but the exact use cases aren't entirely clear which is making finding and determining the most appropriate solution difficult. I'm hoping John can answer this question. -- Lachlan Hunt

Re: [selectors-api] Summary of Feature Requests for v2

2009-09-24 Thread Lachlan Hunt
of elements can be provided somehow and that the implementation can execute the query on each distinct element in that collection. How exactly that is done is just an API design issue. -- Lachlan Hunt - Opera Software http://lachy.id.au/ http://www.opera.com/

[selectors-api] Matches Selector Interface

2009-09-24 Thread Lachlan Hunt
easier to define, but otherwise, no normative changes. I also fixed up the IDL for the NodeSelector interface to match the current WebIDL requirements. I made these changes to the level 1 spec too. -- Lachlan Hunt - Opera Software http://lachy.id.au/ http://www.opera.com/

[selectors-api] Scoped Selectors

2009-09-24 Thread Lachlan Hunt
used once. I'm not sure which alternative would be best, and I'm kind of hoping there's a 4th alternative I haven't thought of yet that can address the use cases easliy enough. -- Lachlan Hunt - Opera Software http://lachy.id.au/ http://www.opera.com/

[selectors-api] Summary of Feature Requests for v2

2009-09-23 Thread Lachlan Hunt
and evaluate the problems being solved, and determine if it's really worth addressing in this version. -- Lachlan Hunt - Opera Software http://lachy.id.au/ http://www.opera.com/

Re: [selectors-api] Summary of Feature Requests for v2

2009-09-23 Thread Lachlan Hunt
target element matches a given selector. So it would be something like: if (evt.target.matchesSelector(.fooinput.bar)) { ... } -- Lachlan Hunt - Opera Software http://lachy.id.au/ http://www.opera.com/

[webdatabase] Minor Clarification Needed in Processing Model

2009-09-03 Thread Lachlan Hunt
in the transaction are discarded. Can you clarify this statement so that it's clearer that it's referring to the transaction's error callback, and not a statement error callback in executeSql. -- Lachlan Hunt - Opera Software http://lachy.id.au/ http://www.opera.com/

[webdatabase] Transaction Locks

2009-08-31 Thread Lachlan Hunt
/webdatabase/#processing-model -- Lachlan Hunt - Opera Software http://lachy.id.au/ http://www.opera.com/

[webdatabase] changeVersion should allow all callbacks to be optional

2009-08-28 Thread Lachlan Hunt
Hi, The spec currently requires the first 2 callbacks for the changeVersion method, while the 3rd is optional. The spec should make all of the callbacks optional so authors don't resort to specifying empty functions when they don't actually need to do anything with it. -- Lachlan Hunt

[selectors-api] Test Suite Progress

2009-07-24 Thread Lachlan Hunt
/public-webapps/2009JanMar/0788.html [4] http://www.hixie.ch/tests/adhoc/dom/selectors/001.html -- Lachlan Hunt - Opera Software http://lachy.id.au/ http://www.opera.com/

  1   2   >