Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

html-element-extended

Package Overview
Dependencies
Maintainers
0
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

html-element-extended - npm Package Compare versions

Comparing version 0.1.0 to 0.1.1

2

CHANGELOG.md

@@ -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

9

htmlelementextended.js

@@ -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"
}
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc