HtmlParser: self-closing and void elements handling ** BREAKING **#5591
HtmlParser: self-closing and void elements handling ** BREAKING **#5591vicb wants to merge 2 commits intoangular:masterfrom
Conversation
bb9cc2c to
59ae442
Compare
|
I just went through the tests and the behavior looks good to me. |
BREAKING CHANGE End tags used to be tolerated for void elements with no content. They are no more allowed so that we more closely follow the HTML5 spec.
59ae442 to
f86861a
Compare
BREAKING CHANGE: `<whatever />` used to be expanded to `<whatever></whatever>`. The parser now follows the HTML5 spec more closely. Only void and foreign elements can be self closed.
f86861a to
fea6f30
Compare
|
Merging PR #5591 on behalf of @jelbourn to branch presubmit-jelbourn-pr-5591. |
|
Can you please add couple examples of what is not allowed now, what was allowed before (and why)? |
|
Only valid Html5 is allowed
|
|
@e-oz Basically anything that is invalid HTML is now disallowed: NOT ALLOWED
<div />
<custom-thing />
<input></input>
<img ...></img> |
|
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
see individual commit messages for more details
/cc @IgorMinar @jelbourn @pkozlowski-opensource @tbosch