fix rawAttributes()

This commit is contained in:
Minas Keshishyan 2020-02-03 13:40:28 +04:00
parent 2315ec89a2
commit 6aba0280bf

View file

@ -424,7 +424,7 @@ export default class HTMLElement extends Node {
const re = /\b([a-z][a-z0-9\-]*)(?:\s*=\s*(?:"([^"]*)"|'([^']*)'|(\S+)))?/ig;
let match: RegExpExecArray;
while (match = re.exec(this.rawAttrs)) {
attrs[match[1]] = match[2] || null;
attrs[match[1]] = match[2] || match[3] || match[4] || null;
}
}
this._rawAttrs = attrs;