Bug Tracker

Ticket #5052: patch.txt

File patch.txt, 1.1 KB (added by lrbabe, 12 years ago)

proposed patch with all "_" removed

Line 
1Index: selector.js
2===================================================================
3--- selector.js (revision 6529)
4+++ selector.js (working copy)
5@@ -259,14 +259,14 @@
6 var Expr = Sizzle.selectors = {
7        order: [ "ID", "NAME", "TAG" ],
8        match: {
9-               ID: /#((?:[\w\u00c0-\uFFFF_-]|\\.)+)/,
10-               CLASS: /\.((?:[\w\u00c0-\uFFFF_-]|\\.)+)/,
11-               NAME: /\[name=['"]*((?:[\w\u00c0-\uFFFF_-]|\\.)+)['"]*\]/,
12-               ATTR: /\[\s*((?:[\w\u00c0-\uFFFF_-]|\\.)+)\s*(?:(\S?=)\s*(['"]*)(.*?)\3|)\s*\]/,
13-               TAG: /^((?:[\w\u00c0-\uFFFF\*_-]|\\.)+)/,
14+               ID: /#((?:[\w\u00c0-\uFFFF-]|\\.)+)/,
15+               CLASS: /\.((?:[\w\u00c0-\uFFFF-]|\\.)+)/,
16+               NAME: /\[name=['"]*((?:[\w\u00c0-\uFFFF-]|\\.)+)['"]*\]/,
17+               ATTR: /\[\s*((?:[\w\u00c0-\uFFFF-]|\\.)+)\s*(?:(\S?=)\s*(['"]*)(.*?)\3|)\s*\]/,
18+               TAG: /^((?:[\w\u00c0-\uFFFF\*-]|\\.)+)/,
19                CHILD: /:(only|nth|last|first)-child(?:\((even|odd|[\dn+-]*)\))?/,
20                POS: /:(nth|eq|gt|lt|first|last|even|odd)(?:\((\d*)\))?(?=[^-]|$)/,
21-               PSEUDO: /:((?:[\w\u00c0-\uFFFF_-]|\\.)+)(?:\((['"]*)((?:\([^\)]+\)|[^\2\(\)]*)+)\2\))?/
22+               PSEUDO: /:((?:[\w\u00c0-\uFFFF-]|\\.)+)(?:\((['"]*)((?:\([^\)]+\)|[^\2\(\)]*)+)\2\))?/
23        },
24        attrMap: {
25                "class": "className",