mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-10-19 15:43:20 +00:00
21 lines
596 B
HTML
21 lines
596 B
HTML
![]() |
<!DOCTYPE html>
|
||
|
<head>
|
||
|
<script src="include.js"></script>
|
||
|
<link href="file://does-not-exists.css" rel="stylesheet" />
|
||
|
</head>
|
||
|
<script>
|
||
|
asyncTest(done => {
|
||
|
fetch("parse-document-from-string-in-fetch-callback.html")
|
||
|
.then(response => {
|
||
|
return response.text()
|
||
|
})
|
||
|
.then(text => {
|
||
|
const parser = new DOMParser();
|
||
|
const newDoc = parser.parseFromString(text, 'text/html');
|
||
|
println(newDoc.body.innerHTML);
|
||
|
done();
|
||
|
});
|
||
|
});
|
||
|
</script>
|
||
|
<body>hello!</body>
|