We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9d55986 commit b7c9bb8Copy full SHA for b7c9bb8
1 file changed
src/attr.ts
@@ -41,7 +41,7 @@ export function initializeAttrs(instance: HTMLElement, names?: Iterable<string>)
41
const name = attrToAttributeName(key)
42
let descriptor: PropertyDescriptor = {
43
get(this: HTMLElement): string {
44
- return String(this.getAttribute(name) || '')
+ return this.getAttribute(name) || ''
45
},
46
set(this: HTMLElement, newValue: string) {
47
this.setAttribute(name, newValue || '')
0 commit comments