-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
make the closing "/" character optional for the void HTML elements
- Loading branch information
Showing
6 changed files
with
126 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
##### Template: | ||
# template test | ||
Hello<br>World</br> | ||
# /template | ||
|
||
##### Errors: | ||
[ | ||
{ | ||
"description": "The end element </br> was rejected as <br> is a void HTML element and can't have a closing element", | ||
"line": 2, | ||
"column": 19 | ||
} | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,75 @@ | ||
##### Template: | ||
# template test | ||
Hello<br>World | ||
<area> | ||
<base> | ||
<col> | ||
<command> | ||
<embed> | ||
<hr> | ||
<img> | ||
<input> | ||
<keygen> | ||
<meta> | ||
<param> | ||
<source> | ||
<track> | ||
<wbr> | ||
# /template | ||
|
||
##### Parsed Tree | ||
[ | ||
{ | ||
"type": "template", "name": "test", "args": [], "content": [ | ||
{"type": "text", "value": "Hello"}, | ||
{"type": "element", "name": "br", "closed": false}, | ||
{"type": "text", "value": "World "}, | ||
{"type": "element", "name": "area", "closed": false}, | ||
{"type": "element", "name": "base", "closed": false}, | ||
{"type": "element", "name": "col", "closed": false}, | ||
{"type": "element", "name": "command", "closed": false}, | ||
{"type": "element", "name": "embed", "closed": false}, | ||
{"type": "element", "name": "hr", "closed": false}, | ||
{"type": "element", "name": "img", "closed": false}, | ||
{"type": "element", "name": "input", "closed": false}, | ||
{"type": "element", "name": "keygen", "closed": false}, | ||
{"type": "element", "name": "meta", "closed": false}, | ||
{"type": "element", "name": "param", "closed": false}, | ||
{"type": "element", "name": "source", "closed": false}, | ||
{"type": "element", "name": "track", "closed": false}, | ||
{"type": "element", "name": "wbr", "closed": false} | ||
], | ||
"closed": true, | ||
} | ||
] | ||
|
||
##### Syntax Tree | ||
[ | ||
{ | ||
"type": "template", | ||
"name": "test", | ||
"args": [], | ||
"export": false, | ||
"content": [ | ||
{"type": "text", "value": "Hello"}, | ||
{"type": "element", "name": "br", "closed": true}, | ||
{"type": "text", "value": "World "}, | ||
{"type": "element", "name": "area", "closed": true}, | ||
{"type": "element", "name": "base", "closed": true}, | ||
{"type": "element", "name": "col", "closed": true}, | ||
{"type": "element", "name": "command", "closed": true}, | ||
{"type": "element", "name": "embed", "closed": true}, | ||
{"type": "element", "name": "hr", "closed": true}, | ||
{"type": "element", "name": "img", "closed": true}, | ||
{"type": "element", "name": "input", "closed": true}, | ||
{"type": "element", "name": "keygen", "closed": true}, | ||
{"type": "element", "name": "meta", "closed": true}, | ||
{"type": "element", "name": "param", "closed": true}, | ||
{"type": "element", "name": "source", "closed": true}, | ||
{"type": "element", "name": "track", "closed": true}, | ||
{"type": "element", "name": "wbr", "closed": true} | ||
] | ||
} | ||
] | ||
|
||
##### Template Code |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters