Skip to content

Commit

Permalink
remove extra '.toLowerCase()' not needed anymore after the change to …
Browse files Browse the repository at this point in the history
…use localName
  • Loading branch information
dperini committed Aug 21, 2020
1 parent 6dac2ca commit 32ac887
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/nwsapi.js
Original file line number Diff line number Diff line change
Expand Up @@ -534,7 +534,7 @@
// contentType not in IE <= 11
'contentType' in doc ?
doc.contentType.indexOf('/html') > 0 :
doc.createElement('DiV').localName == 'DIV';
doc.createElement('DiV').localName == 'div';
},

// configure the engine to use special handling
Expand Down Expand Up @@ -823,7 +823,7 @@
match = selector.match(Patterns.tagName);
source = 'if(' + N + '(e.localName' +
(Config.MIXEDCASE || hasMixedCaseTagNames(doc) ?
'.toLowerCase()=="' + match[1].toLowerCase() + '"' :
'=="' + match[1].toLowerCase() + '"' :
'=="' + match[1].toUpperCase() + '"') +
')){' + source + '}';
break;
Expand Down Expand Up @@ -1325,7 +1325,7 @@
makeref =
function(selectors, element) {
return selectors.replace(/:scope/ig,
element.localName.toLowerCase() +
element.localName +
(element.id ? '#' + element.id : '') +
(element.className ? '.' + element.classList[0] : ''));
},
Expand Down

0 comments on commit 32ac887

Please sign in to comment.