We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent faece14 commit c7ba274Copy full SHA for c7ba274
src/nodes/html.ts
@@ -687,7 +687,7 @@ export default class HTMLElement extends Node {
687
}
688
const attrs = {} as RawAttributes;
689
if (this.rawAttrs) {
690
- const re = /([a-zA-Z()#][a-zA-Z0-9-_:()#]*)(?:\s*=\s*((?:'[^']*')|(?:"[^"]*")|\S+))?/g;
+ const re = /([a-zA-Z()#_][a-zA-Z0-9-_:()#]*)(?:\s*=\s*((?:'[^']*')|(?:"[^"]*")|\S+))?/g;
691
let match: RegExpExecArray;
692
while ((match = re.exec(this.rawAttrs))) {
693
const key = match[1];
0 commit comments