mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-04 16:11:54 +00:00
Replaced the ad-hoc implementation with a spec compliant one. This change fixes 36 WPT tests.
12 lines
454 B
HTML
12 lines
454 B
HTML
<script src="../include.js"></script>
|
|
<script>
|
|
test(() => {
|
|
let element = document.createElement('div');
|
|
element.innerText = "";
|
|
println('Empty string: "' + element.innerHTML + '"');
|
|
element.innerText = "foo";
|
|
println('Simple text: "' + element.innerHTML + '"');
|
|
element.innerText = "\rfoo\nbar\r\nbaz\n\rfoobar\n";
|
|
println('Text with newlines: "' + element.innerHTML + '"');
|
|
});
|
|
</script>
|