Ruby on Rails | Screencasts | Download | Documentation | Weblog | Community | Source

Changeset 7923

Show
Ignore:
Timestamp:
10/16/07 02:28:28 (11 months ago)
Author:
andrew
Message:

* 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]

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • spinoffs/prototype/trunk/CHANGELOG

    r7922 r7923  
    11*SVN* 
    22 
    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] 
    46 
    57* Make sure $w always returns an array. [Andrew Dupont, Tobie Langel] 
  • spinoffs/prototype/trunk/src/selector.js

    r7922 r7923  
    1111  compileMatcher: function() { 
    1212    // 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)) 
    1414      return this.compileXPathMatcher(); 
    1515