Merge pull request #138 from sveltejs/gh-137

require void elements to be lowercase
pull/145/head
Rich Harris 8 years ago committed by GitHub
commit b81ff3e73d

@ -6,7 +6,7 @@ import { trimStart, trimEnd } from '../utils/trim.js';
import { decodeCharacterReferences } from '../utils/html.js';
const validTagName = /^[a-zA-Z]{1,}:?[a-zA-Z0-9\-]*/;
const voidElementNames = /^(?:area|base|br|col|command|doctype|embed|hr|img|input|keygen|link|meta|param|source|track|wbr)$/i;
const voidElementNames = /^(?:area|base|br|col|command|doctype|embed|hr|img|input|keygen|link|meta|param|source|track|wbr)$/;
const invalidUnquotedAttributeCharacters = /[\s"'=<>\/`]/;
const specials = {

@ -0,0 +1,3 @@
export default {
html: '<p>Hello</p>'
};

@ -0,0 +1,11 @@
<Link>Hello</Link>
<script>
import Link from './Link.html';
export default {
components: {
Link
}
};
</script>
Loading…
Cancel
Save