Changeset 7923
- Timestamp:
- 10/16/07 02:28:28 (11 months ago)
- Files:
-
- spinoffs/prototype/trunk/CHANGELOG (modified) (1 diff)
- spinoffs/prototype/trunk/src/selector.js (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
spinoffs/prototype/trunk/CHANGELOG
r7922 r7923 1 1 *SVN* 2 2 3 * Changed Selector pattern match so that descendant combinators after pseudoclass tokens are properly handled. [wiktor, kangax, Andrew Dupont] 3 * 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] 4 5 * Changed Selector pattern match so that descendant combinators after pseudoclass tokens are properly handled. Fixes #9696. [wiktor, kangax, Andrew Dupont] 4 6 5 7 * Make sure $w always returns an array. [Andrew Dupont, Tobie Langel] spinoffs/prototype/trunk/src/selector.js
r7922 r7923 11 11 compileMatcher: function() { 12 12 // Selectors with namespaced attributes can't use the XPath version 13 if (Prototype.BrowserFeatures.XPath && !(/ \[[\w-]*?:/).test(this.expression))13 if (Prototype.BrowserFeatures.XPath && !(/(\[[\w-]*?:|:checked)/).test(this.expression)) 14 14 return this.compileXPathMatcher(); 15 15