|
@@ -24,7 +24,7 @@ function nbInit(a,b){
|
|
|
items = root.querySelectorAll("#" + selector);
|
|
|
}
|
|
|
items = items[0] ? items : root.querySelectorAll(selector);
|
|
|
- items = items.length ? items : root === document ? root.getElementsByName(selector) : root.querySelectorAll("['name'='" + selector + "']");
|
|
|
+ items = items.length ? items : root === document ? root.getElementsByName(selector) : root.querySelectorAll("[name='" + selector + "']");
|
|
|
items = items.length ? items : root.getElementsByClassName(selector);
|
|
|
return items;
|
|
|
}
|