Commit 0ac15a8
committed
HTML API: Improve script tag escape state processing.
Addresses some edge cases parsing of script tag contents:
- "<!-->" remains in the unescaped state and does not enter the escaped state.
- Contents in the escaped state that end with "<script" do not enter double-escaped state.
- "\f" (Form Feed) was missing as a tag name terminating character.
Developed in WordPress/wordpress-develop#9397 and WordPress/wordpress-develop#9402.
Props jonsurrell, dmsnell.
See #63738.
Built from https://develop.svn.wordpress.org/trunk@60649
git-svn-id: http://core.svn.wordpress.org/trunk@59985 1a063a9b-81f0-0310-95a4-ce76da25c4cd1 parent 9ab3854 commit 0ac15a8
File tree
2 files changed
+46
-15
lines changed- wp-includes
- html-api
2 files changed
+46
-15
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1556 | 1556 | | |
1557 | 1557 | | |
1558 | 1558 | | |
1559 | | - | |
1560 | | - | |
1561 | | - | |
1562 | | - | |
1563 | | - | |
1564 | | - | |
1565 | | - | |
1566 | | - | |
1567 | | - | |
1568 | | - | |
| 1559 | + | |
| 1560 | + | |
1569 | 1561 | | |
1570 | 1562 | | |
| 1563 | + | |
1571 | 1564 | | |
1572 | 1565 | | |
1573 | 1566 | | |
1574 | 1567 | | |
1575 | | - | |
1576 | | - | |
| 1568 | + | |
| 1569 | + | |
| 1570 | + | |
| 1571 | + | |
| 1572 | + | |
| 1573 | + | |
| 1574 | + | |
| 1575 | + | |
| 1576 | + | |
| 1577 | + | |
| 1578 | + | |
| 1579 | + | |
| 1580 | + | |
| 1581 | + | |
| 1582 | + | |
| 1583 | + | |
| 1584 | + | |
| 1585 | + | |
1577 | 1586 | | |
1578 | 1587 | | |
1579 | 1588 | | |
| |||
1610 | 1619 | | |
1611 | 1620 | | |
1612 | 1621 | | |
1613 | | - | |
1614 | | - | |
| 1622 | + | |
| 1623 | + | |
| 1624 | + | |
| 1625 | + | |
| 1626 | + | |
| 1627 | + | |
| 1628 | + | |
| 1629 | + | |
| 1630 | + | |
| 1631 | + | |
| 1632 | + | |
| 1633 | + | |
| 1634 | + | |
| 1635 | + | |
| 1636 | + | |
| 1637 | + | |
| 1638 | + | |
| 1639 | + | |
| 1640 | + | |
| 1641 | + | |
| 1642 | + | |
| 1643 | + | |
| 1644 | + | |
| 1645 | + | |
1615 | 1646 | | |
1616 | 1647 | | |
1617 | 1648 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
19 | | - | |
| 19 | + | |
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
| |||
0 commit comments