@erickmerchant/framework
Advanced tools
Comparing version 43.5.0 to 43.6.0
@@ -44,8 +44,10 @@ import {tokenTypes} from './html.js' | ||
if (!remove) { | ||
const listeners = readMeta(target.ownerDocument) | ||
const document = target.ownerDocument | ||
const listeners = readMeta(document) | ||
if (!listeners[type]) { | ||
listeners[type] = true | ||
addListener(target.ownerDocument, type) | ||
addListener(document, type) | ||
} | ||
@@ -57,3 +59,4 @@ } | ||
} else if (!remove) { | ||
const stringified = value === true ? '' : String(value) | ||
const stringified = | ||
value === true ? '' : typeof value === 'string' ? value : String(value) | ||
@@ -65,3 +68,3 @@ if (!isExistingElement || target.getAttribute(key) !== stringified) { | ||
if (key === 'value' || value === true || value === false) { | ||
if (value === true || value === false || key === 'value') { | ||
if (target[key] !== value) { | ||
@@ -68,0 +71,0 @@ target[key] = value |
{ | ||
"name": "@erickmerchant/framework", | ||
"version": "43.5.0", | ||
"version": "43.6.0", | ||
"description": "A front-end framework.", | ||
@@ -5,0 +5,0 @@ "homepage": "https://github.com/erickmerchant/framework#readme", |
17970
594