-
-
Notifications
You must be signed in to change notification settings - Fork 384
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* feedhandler: overcome lint warning * test(WritableStream): cover else branch * test(Parser): cover (open-implies-close case of) `onclosetag` else branch with non-`br` void close tag in non-XML mode * refactor: improve else coverage by avoiding `openImpliesClose` optional chaining operator (check for existence already made upon entering block) * refactor: improve coverage by avoiding null check for `endIndex` (since by calling `_updatePosition`, it will never be `null`). Cast endIndex as number to avoid TS believing it could be null. * test(index): check APIs * Move test case to event Co-authored-by: Felix Böhm <[email protected]>
- Loading branch information
Showing
5 changed files
with
48 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
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,33 @@ | ||
{ | ||
"name": "open-implies-close case of (non-br) void close tag in non-XML mode", | ||
"options": { | ||
"parser": { "lowerCaseAttributeNames": true } | ||
}, | ||
"html": "<select><input></select>", | ||
"expected": [ | ||
{ | ||
"event": "opentagname", | ||
"data": ["select"] | ||
}, | ||
{ | ||
"event": "opentag", | ||
"data": ["select", {}] | ||
}, | ||
{ | ||
"event": "closetag", | ||
"data": ["select"] | ||
}, | ||
{ | ||
"event": "opentagname", | ||
"data": ["input"] | ||
}, | ||
{ | ||
"event": "opentag", | ||
"data": ["input", {}] | ||
}, | ||
{ | ||
"event": "closetag", | ||
"data": ["input"] | ||
} | ||
] | ||
} |
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