Skip to content

Commit 73d0002

Browse files
committed
enquote bad characters
1 parent a2505fd commit 73d0002

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

script/tag-name-input.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ customElements.define('tag-name-input', class extends HTMLInputElement {
2727
} else if (!validTagName(value)) {
2828
const chars = new Set()
2929
for (const char of value) {
30-
if (!(validChar.test(char))) chars.add(char)
30+
if (!(validChar.test(char))) chars.add(`'${char}'`)
3131
}
3232
this.setCustomValidity(`${value} is not a valid tag name, cannot contain ${[...chars].join(', ')}`)
3333
}

0 commit comments

Comments
 (0)