-
-
Notifications
You must be signed in to change notification settings - Fork 163
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[lazylex/html] Partially handle tags like </SCRIPT> and </STYLE>
We don't have the full HTML5 rule of case-insensitive matching. But we will at least handle <scrIPT>foo</scrIPT> and <STyle>foo</STyle>, if that's what you wrote. It's no longer limited to lower case. --- The more comprehensive solution is to introduce another lexer mode, which only has an end tag regex only. Then you keep finding end tags until you hit the one that matches, insensitive to case. We can do that later perhaps. --- Also make some notes about conversion to XML. I believe we can do a sed-like transformation and it will work. We just have to catch < & > in a few places.
- Loading branch information
Andy C
committed
Jan 13, 2025
1 parent
fb42513
commit f2bf58f
Showing
3 changed files
with
71 additions
and
25 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