html-element-extended
Advanced tools
Comparing version 0.1.0 to 0.1.1
@@ -0,1 +1,3 @@ | ||
* 0.1.1 Fixed an issue with boolean parameters not showing boolean false | ||
* 0.1.0 Split out qrelementextended and videoelementextended as own repos and modules | ||
* 0.0.12 support iterators as children | ||
@@ -2,0 +4,0 @@ * 0.0.11 support bool & float attributes, video: support webShare |
@@ -124,6 +124,6 @@ /* Summary | ||
.forEach((kv) => { | ||
if (['textContent', 'onsubmit', 'onclick', 'onchange', 'innerHTML', 'style', 'action', 'checked', 'indeterminate'].includes(kv[0])) { | ||
if (['textContent', 'onsubmit', 'onclick', 'onchange', 'innerHTML', 'style', 'action'].includes(kv[0])) { | ||
el[kv[0]] = kv[1]; | ||
} else if (['checked', 'indeterminate'].includes(kv[0])) { | ||
el[kv[0]] = toBool(kv[1]); | ||
} else if (['checked', 'indeterminate', 'selected'].includes(kv[0])) { //TODO this should be generic | ||
el[kv[0]] = toBool(kv[1]); // Booleans are set as fields of the element | ||
} else if ((typeof kv[1] === 'object') && (kv[1] !== null)) { | ||
@@ -177,2 +177,3 @@ el.attributeChangedCallback(kv[0], null, kv[1]); // will do a state change, but can be subclassed like other attributes | ||
static get integerAttributes - return array of integer attributes, typically overridden in subclasses | ||
static get floatAttributes - return array of integer attributes, typically overridden in subclasses | ||
static get observedAttributes - return array of names of attributes (just strings) passed | ||
@@ -273,3 +274,3 @@ loadSetRenderAndReplace(url, q, cb) - fetch URL, set state from data, render new version | ||
// render() a new set of nodes, then remove existing ones and add new ones | ||
// render0 is intentionally undefined - its absence means try a render | ||
// render0 is intentionally undefined - its absence means try a render, its presence means only render once. | ||
renderAndReplace() { | ||
@@ -276,0 +277,0 @@ // console.log(this.localName, 'RenderAndReplace', this.isLoaded); |
@@ -29,3 +29,3 @@ { | ||
"type": "module", | ||
"version": "0.1.0" | ||
"version": "0.1.1" | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
57109
336