Repository navigation
Commit 825945a
committed
refactor(html): decode the script type without guarding on the reference
`decodeEntities` opens with the same `indexOf("&")` early-out, so the guard
scanned for the ampersand twice on a value that has one and saved only a call
on a value that does not. The printer's attribute loop keeps its guard because
`hasReference` is computed once and reused by several decisions there; these
two sites have no such reuse.1 parent 2a65a95 commit 825945a
1 file changed
Lines changed: 4 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10068 | 10068 | | |
10069 | 10069 | | |
10070 | 10070 | | |
10071 | | - | |
10072 | | - | |
10073 | | - | |
| 10071 | + | |
| 10072 | + | |
| 10073 | + | |
10074 | 10074 | | |
10075 | 10075 | | |
10076 | 10076 | | |
| |||
10450 | 10450 | | |
10451 | 10451 | | |
10452 | 10452 | | |
10453 | | - | |
10454 | 10453 | | |
10455 | 10454 | | |
10456 | | - | |
10457 | | - | |
10458 | | - | |
| 10455 | + | |
10459 | 10456 | | |
10460 | 10457 | | |
10461 | 10458 | | |
| |||
0 commit comments