Sfoglia il codice sorgente

Add doctype to list of self closing tags

I added upper and lowercase because that seemed
preferable to always casting every html function
name to lowercase.
master
Dylan Baker 6 anni fa
parent
commit
20ab139ca7
1 ha cambiato i file con 2 aggiunte e 0 eliminazioni
  1. 2
    0
      src/compiler.js

+ 2
- 0
src/compiler.js Vedi File

@@ -12,6 +12,8 @@ module.exports = class Compiler {
12 12
       'br',
13 13
       'col',
14 14
       'command',
15
+      '!doctype',
16
+      '!DOCTYPE',
15 17
       'embed',
16 18
       'hr',
17 19
       'img',

Loading…
Annulla
Salva