(body)
| 2532 | 'IN_PLACE: literal-text element from an XHTML document loses markup text like in HTML mode', |
| 2533 | (assert) => { |
| 2534 | const parse = (body) => |
| 2535 | new window.DOMParser().parseFromString( |
| 2536 | '<div xmlns="http://www.w3.org/1999/xhtml">' + body + '</div>', |
| 2537 | 'application/xhtml+xml' |
| 2538 | ).documentElement; |
| 2539 | |
| 2540 | const noembedRoot = parse( |
| 2541 | '<noembed></style><img src="x" onerror="alert(1)"/></noembed>' |