Commit Graph

33 Commits

Author SHA1 Message Date
Andrew Dupont 03c1530014 Integrate support for the W3C Selectors API into the Selector class. Will now use the API when possible (browser supports the API *and* recognizes the given selector). Means minor changes to the semantics of :enabled, :disabled, and :empty in order to comply with CSS spec. 2008-03-27 01:18:15 -05:00
Andrew Dupont 6a2d81ce62 Fixed an improperly-encoded apostrophe in a comment. 2008-03-17 15:59:58 +00:00
Tobie Langel 359e8810de prototype: Minor clean-up of selector.js. Closes #10844. 2008-03-09 07:27:02 +00:00
Tobie Langel f4d68350f3 prototype: Allow Selector to correctly detect the presence of namespaced attributes. Closes #10987. 2008-02-03 19:45:32 +00:00
Andrew Dupont a1ec25cddb Prevent DOM node expandos _countedByPrototype and _prototypeEventID from being serialized into (inner|outer)HTML in IE. Closes #10909. [dcpedit, Tobie Langel, Andrew Dupont] 2008-01-25 18:49:40 +00:00
Andrew Dupont 7942a9e5c9 Fixed issue where Element#match failed on attribute selectors with single or double quotes. Closes #10067. [Cezary Okupski, Andrew Dupont] 2008-01-23 20:05:17 +00:00
Tobie Langel dcada47c6d prototype: Test for attribute existence before applying more complex CSS3 selectors. Closes #10870. 2008-01-23 00:33:04 +00:00
Andrew Dupont c67fe0b2f3 Fixed selector parsing so that "#foo [bar=baz]" is treated the same way as "#foo *[bar=baz]". Closes #10734. [jlukas, kangax, Andrew Dupont] 2008-01-18 04:52:38 +00:00
Tobie Langel a246e777f5 prototype: Fix Selector.matchElements to allow for coma-separated selectors in Element#up/next/previous and Event#findElement. 2008-01-06 21:49:16 +00:00
Andrew Dupont c691de7810 Fix the way Selector handles [pseudoclass + combinator] with no space in between. Closes #9696. [kangax, fearphage, Andrew Dupont] 2007-12-20 00:17:24 +00:00
Andrew Dupont 6f0e0ad649 Handle case-sensitivity in Selector tag names better. Closes #5052. [mexx, Andrew Dupont] 2007-12-19 23:32:21 +00:00
Andrew Dupont c85285496b * Ensure no comment nodes are returned in Selector queries (IE improperly returns comment nodes on getElementsByTagName("*")). Change Element#descendants to use Element#getElementsBySelector in order to avoid this issue. Closes #10220. [Jeff Gobel, Andrew Dupont] 2007-11-27 18:43:56 +00:00
Andrew Dupont b01903d92f * Re-enable the XPath approach in Selector for Safari 3. Falls back to the non-XPath version when it sees a problematic token. [Andrew Dupont] 2007-11-27 18:21:50 +00:00
Tobie Langel c371096a71 prototype: Remove useless variable in Selector.handlers.child. Closes #10006. 2007-11-15 22:21:08 +00:00
Tobie Langel d20cc77e0c prototype: Don't redeclare previously declared variables. Closes #10007 2007-11-15 22:15:24 +00:00
Andrew Dupont 8cd85d12a2 Ensure selectors of the form "[href]" (attribute token with no preceding tag name) work properly. Closes #8870. [chao, kangax, Andrew Dupont] 2007-11-05 17:11:41 +00:00
Andrew Dupont 0dd4ba70f6 * Changed the Selector regex that tests whether the selector can be expressed in XPath; added :checked, since XPath can't detect all scenarios in which an <input> is checked. Fixes #9776. [StelardActek, kangax, Andrew Dupont] 2007-10-16 02:28:28 +00:00
Andrew Dupont 88f8d3b9af * Changed Selector pattern match so that descendant combinators after pseudoclass tokens are properly handled. Fixes #9696. [wiktor, kangax, Andrew Dupont] 2007-10-16 02:21:24 +00:00
Sam Stephenson cf88669931 prototype: Fix missing "var" in selector.js. Closes #9761. 2007-10-08 21:15:46 +00:00
Sam Stephenson 6086db40a7 prototype: Update Template, Selector, Ajax.*, and ObjectRange classes to use the new class system. 2007-08-18 23:21:29 +00:00
Sam Stephenson df71a6b54f prototype: Add Object.isString, Object.isNumber, and Object.isUndefined, and clean up the source to make use of Object.isXXX where possible. 2007-08-08 23:19:45 +00:00
Sam Stephenson c488384f90 prototype: Add support for brackets in quoted attribute value selectors. Closes #9157. 2007-08-07 20:33:53 +00:00
Sam Stephenson c9a0485b60 prototype: Add some missing semicolons to the source tree. Closes #9140. 2007-08-07 19:41:13 +00:00
Sam Stephenson 82bedcee84 prototype: Optimize Selector#match and Element#match for simple selectors. Closes #9082. 2007-07-24 20:49:55 +00:00
Sam Stephenson beeb12e7dd prototype: Prevent an error being thrown by $$ when #id does not exist in $$("div #id"). Closes #8325. 2007-05-18 00:51:34 +00:00
Sam Stephenson f457c98673 prototype: Merge -r6639:HEAD from branches/rel_1-5-1 into trunk. 2007-05-01 04:19:46 +00:00
Thomas Fuchs 4506db2df2 Fix Selector issues with :not and attribute selector double quotes, fixes #7901. [Andrew Dupont] 2007-03-27 18:20:35 +00:00
Thomas Fuchs 779cd337b8 Fix issues with Selector an+b logic, performance improvements. Closes #7873. [Andrew Dupont] 2007-03-27 18:14:53 +00:00
Sam Stephenson 1c8e6c170e prototype: Give credit where credit is due. Add an attribution to YUI-Ext's DomQuery to the top of selector.js. 2007-03-12 20:27:19 +00:00
Thomas Fuchs c9199c804d Remove the first-element special treatment from Selector unique 2007-03-11 16:19:02 +00:00
Thomas Fuchs b2845e4557 Prototype: Make Selector correctly extend the first element it returns on IE. [Thomas Fuchs] 2007-03-11 14:51:14 +00:00
Sam Stephenson 00bce412d2 prototype: Merge the selector branch into trunk, bringing vast performance improvements, bug fixes, and near-complete CSS3 compliance to $$ and Selector. Closes #7568. 2007-03-09 04:12:13 +00:00
Sam Stephenson bb4d189b37 prototype: Reorganize the source tree. 2007-01-18 22:24:27 +00:00