mirror of
https://github.com/SerenityOS/serenity
synced 2026-05-14 10:56:35 +02:00
This fixes at least one WPT under /domparsing (cherry picked from commit 89192ecc46576b0872ff51a073d088f89223cd61)
10 lines
334 B
HTML
10 lines
334 B
HTML
<script src="../include.js"></script>
|
|
<script>
|
|
test(() => {
|
|
var doc = new DOMParser().parseFromString('<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" ""><html><div id="test"/></html>', 'application/xhtml+xml');
|
|
if (doc.getElementById('test')) {
|
|
println('PASSED');
|
|
}
|
|
});
|
|
</script>
|