// Handle HTML strings
if ( typeof selector === "string" ) {
- if ( selector.charAt(0) === "<" && selector.charAt( selector.length - 1 ) === ">" && selector.length >= 3 ) {
+ if ( selector[0] === "<" && selector[ selector.length - 1 ] === ">" && selector.length >= 3 ) {
// Assume that strings that start and end with <> are HTML and skip the regex check
match = [ null, selector, null ];
}
// check for vendor prefixed names
- var capName = name.charAt(0).toUpperCase() + name.slice(1),
+ var capName = name[0].toUpperCase() + name.slice(1),
origName = name,
i = cssPrefixes.length;