Skip to content

Commit

Permalink
removed unused ATTR_MAPPING definition and tweaked some of the comments
Browse files Browse the repository at this point in the history
  • Loading branch information
dperini committed Nov 21, 2011
1 parent 8a46e1b commit 74f1665
Showing 1 changed file with 4 additions and 9 deletions.
13 changes: 4 additions & 9 deletions src/nwmatcher.js
Expand Up @@ -50,14 +50,14 @@
lastPartsMatch,
lastPartsSelect,

// prefix identifier (id, class & pseudo-class)
// accepted prefix identifiers
// (id, class & pseudo-class)
prefixes = '[#.:]?',

// attributes operators
// ! invalid but compat !
// accepted attribute operators
operators = '([~*^$|!]?={1})',

// whitespace characters
// accepted whitespace characters
whitespace = '[\\x20\\t\\n\\r\\f]*',

// 4 combinators F E, F>E, F+E, F~E
Expand Down Expand Up @@ -386,11 +386,6 @@
selected: 'defaultSelected'
},

// HTML to DOM namespace mapping for special case attributes (IE engines)
ATTR_MAPPING = {
'class': 'className', 'for': 'htmlFor'
},

// attribute referencing URI data values need special treatment in IE
ATTR_URIDATA = {
'action': 2, 'cite': 2, 'codebase': 2, 'data': 2, 'href': 2,
Expand Down

0 comments on commit 74f1665

Please sign in to comment.