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

html-element-property-mixins

Package Overview
Dependencies
Maintainers
1
Versions
21
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

html-element-property-mixins - npm Package Compare versions

Comparing version 0.10.6 to 0.10.7

2

package.json
{
"name": "html-element-property-mixins",
"version": "0.10.6",
"version": "0.10.7",
"description": "A collection of mixins extending HTMLElement with properties.",

@@ -5,0 +5,0 @@ "main": "src/index.js",

@@ -29,3 +29,4 @@ export const DOMProperties = (SuperClass) => class extends SuperClass {

const attrValues = new Map();
for(var attrName in this.attributes) attrValues.set(attrName, this.getAttribute(attrName));
const attributes = Array.from(this.attributes);
for(var i in attributes) attrValues.set(attributes[i], this.getAttribute(attributes[i]))
this.__initialAttributeValues = attrValues;

@@ -36,3 +37,5 @@ }

const attrValues = this.__initialAttributeValues;
attrValues.forEach((val, attrName) => this.setAttribute(attrName, val));
attrValues.forEach((val, attrName) => {
if(val !== null) this.setAttribute(attrName, val)
})
}

@@ -39,0 +42,0 @@

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