その部分::-webkit-search-decoration
はCSSセレクターで何をするのだろうかinput[type="search"]::-webkit-search-decoration
?
そして、なぜこれがDOM例外エラーを引き起こすのですか?
function is(selector, element) {
var div = document.createElement("div"),
matchesSelector = div.webkitMatchesSelector;
return typeof selector == "string" ? matchesSelector.call(element, selector) : selector === element;
}
is('input[type="search"]::-webkit-search-decoration', document.body);