Commit 4c337c8
committed
Simplify the doctype matching
- the doctype() function is only called for a D or d token, so there is no
need to check again inside the method
- checking that we have the DOCTYPE string can use a sequence matching1 parent 7b339b5 commit 4c337c8
1 file changed
Lines changed: 4 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
721 | 721 | | |
722 | 722 | | |
723 | 723 | | |
724 | | - | |
725 | | - | |
726 | | - | |
727 | 724 | | |
728 | | - | |
729 | | - | |
| 725 | + | |
| 726 | + | |
| 727 | + | |
| 728 | + | |
730 | 729 | | |
731 | 730 | | |
732 | 731 | | |
| |||
0 commit comments