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

element-internals-polyfill

Package Overview
Dependencies
Maintainers
1
Versions
110
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

element-internals-polyfill - npm Package Compare versions

Comparing version 0.0.6 to 0.0.7

README.md

7

CHANGELOG.md

@@ -5,2 +5,9 @@ # Changelog

### [0.0.7](https://github.com/calebdwilliams/element-internals-polyfill/compare/v0.0.6...v0.0.7) (2020-04-16)
### Features
* **polyfill:** now fires invalid and valid events ([1e05937](https://github.com/calebdwilliams/element-internals-polyfill/commit/1e0593702c6c8a56cda40a6936d654d91b1176ce))
### [0.0.6](https://github.com/calebdwilliams/element-internals-polyfill/compare/v0.0.5...v0.0.6) (2020-04-14)

@@ -7,0 +14,0 @@

12

dist/element-internals.js

@@ -9,2 +9,3 @@ (function () {

const validationMessageMap = new WeakMap();
const formsMap = new WeakMap();

@@ -71,2 +72,4 @@ const observerConfig = { attributes: true };

});
formsMap.set(form, { ref, internals });
}

@@ -152,2 +155,9 @@ };

const validity = validityMap.get(this);
const ref = refMap.get(this);
const validityEvent = new Event(validity.valid, {
bubbles: false,
cancelable: true,
composed: false
});
ref.dispatchEvent(validityEvent);
return validity.valid;

@@ -173,3 +183,3 @@ }

reportValidity() {
// TODO: Figure out how to polyfill this
return this.checkValidity();
}

@@ -176,0 +186,0 @@

2

package.json
{
"name": "element-internals-polyfill",
"version": "0.0.6",
"version": "0.0.7",
"description": "A polyfill for the element internals specification",

@@ -5,0 +5,0 @@ "main": "/dist/element-internals.js",

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