Skip to content
Browse files

custom-element-name: Check for uppercase ASCII

  • Loading branch information...
1 parent 427cc45 commit cb6c1ca79a322aa23e96889515d4d8c0c2bca43c @mathiasbynens committed Jul 7, 2014
Showing with 2 additions and 2 deletions.
  1. +2 −2 custom-element-name/vendor/all.js
View
4 custom-element-name/vendor/all.js
@@ -32,8 +32,8 @@
return 'Missing element name.';
}
- if (name.toLowerCase() != name) {
- return 'Custom element names must be lowercase.';
+ if (/[A-Z]/.test(name)) {
+ return 'Custom element names must not contain uppercase ASCII characters.';
}
if (name.indexOf('-') === -1) {

0 comments on commit cb6c1ca

Please sign in to comment.
Something went wrong with that request. Please try again.