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.1.1 to 0.1.2

8

CHANGELOG.md

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

### [0.1.2](https://github.com/calebdwilliams/element-internals-polyfill/compare/v0.1.1...v0.1.2) (2021-02-06)
### Bug Fixes
* **formAssociatedCallback:** make sure internals are available when formAssociatedCallback is called ([df9effa](https://github.com/calebdwilliams/element-internals-polyfill/commit/df9effa3d01c4b88a1de5ece45acdddc7df4e983))
* **setValidity:** added missing anchor in method signature. ([0290325](https://github.com/calebdwilliams/element-internals-polyfill/commit/029032515dc1ba3ea250fb140f9df3eb67cbb476))
### [0.1.1](https://github.com/calebdwilliams/element-internals-polyfill/compare/v0.1.0...v0.1.1) (2020-11-18)

@@ -7,0 +15,0 @@

2

dist/element-internals.d.ts

@@ -60,3 +60,3 @@ import { IElementInternals, ICustomElement, LabelsList } from './types';

*/
setValidity(validityChanges: Partial<globalThis.ValidityState>, validationMessage?: string): void;
setValidity(validityChanges: Partial<globalThis.ValidityState>, validationMessage?: string, anchor?: HTMLElement): void;
/** The element's validation message set during a call to ElementInternals.setValidity */

@@ -63,0 +63,0 @@ get validationMessage(): string;

@@ -211,3 +211,5 @@ (function () {

if (ref.constructor['formAssociated'] && ref.formAssociatedCallback) {
ref.formAssociatedCallback.apply(ref, [form]);
setTimeout(() => {
ref.formAssociatedCallback.apply(ref, [form]);
}, 0);
}

@@ -416,3 +418,3 @@ }

*/
setValidity(validityChanges, validationMessage) {
setValidity(validityChanges, validationMessage, anchor) {
const ref = refMap.get(this);

@@ -419,0 +421,0 @@ if (!validityChanges) {

{
"name": "element-internals-polyfill",
"version": "0.1.1",
"version": "0.1.2",
"description": "A polyfill for the element internals specification",

@@ -5,0 +5,0 @@ "main": "dist/index.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