mirror of https://github.com/sveltejs/svelte
Merge pull request #346 from sveltejs/gh-336-accept-doctype-in-any-case
accept DOCTYPE element in any casepull/347/head
commit
9ae74d9808
@ -0,0 +1,5 @@
|
||||
const voidElementNames = /^(?:area|base|br|col|command|embed|hr|img|input|keygen|link|meta|param|source|track|wbr)$/;
|
||||
|
||||
export default function isVoidElementName ( name ) {
|
||||
return voidElementNames.test( name ) || name.toLowerCase() === '!doctype';
|
||||
}
|
@ -1 +0,0 @@
|
||||
export default /^(?:area|base|br|col|command|\!doctype|embed|hr|img|input|keygen|link|meta|param|source|track|wbr)$/;
|
Loading…
Reference in new issue