Bundled output for commit 73d9265c6d [skip ci]

This commit is contained in:
Gandalf-the-Bot 2017-05-02 21:31:10 +00:00
parent 73d9265c6d
commit 2db6081601
2 changed files with 2 additions and 2 deletions

View file

@ -28,7 +28,7 @@ function compileSelector(selector) {
var attrValue = match[6]
if (attrValue) attrValue = attrValue.replace(/\\(["'])/g, "$1").replace(/\\\\/g, "\\")
if (match[4] === "class") classes.push(attrValue)
else attrs[match[4]] = attrValue || true
else attrs[match[4]] = attrValue === "" ? attrValue : attrValue || true
}
}
if (classes.length > 0) attrs.className = classes.join(" ")