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

validate-element-name

Package Overview
Dependencies
Maintainers
1
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

validate-element-name - npm Package Compare versions

Comparing version 0.6.0 to 0.7.0

8

index.js

@@ -20,2 +20,6 @@ 'use strict';

if (name.toLowerCase() !== name) {
return 'Custom element names should be lowercase.';
}
if (name.indexOf('-') === -1) {

@@ -60,6 +64,2 @@ return 'Custom element names must contain a hyphen. Example: unicorn-cake';

if (name.toLowerCase() !== name) {
return 'Custom element names should be lowercase.';
}
if (/^[^a-z]/i.test(name)) {

@@ -66,0 +66,0 @@ return 'This element name is only valid in XHTML, not in HTML. First character should be in the range a-z.';

{
"name": "validate-element-name",
"version": "0.6.0",
"version": "0.7.0",
"description": "Validate the name of a custom element",

@@ -5,0 +5,0 @@ "license": "MIT",

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