mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-16 05:51:55 +00:00
Otherwise, setting the value attribute after the element is added to the DOM is not visibile. The logic here was stolen from the <input> element.
15 lines
444 B
HTML
15 lines
444 B
HTML
<!DOCTYPE html><html><head><style>
|
|
* {
|
|
font: 20px 'SerenitySans';
|
|
}
|
|
</style></head><body>
|
|
<textarea>Bonjour mon amis!</textarea>
|
|
<script>
|
|
const textarea1 = document.createElement("textarea");
|
|
textarea1.innerText = "Well hello friends!";
|
|
document.body.appendChild(textarea1);
|
|
|
|
const textarea2 = document.createElement("textarea");
|
|
document.body.appendChild(textarea2);
|
|
textarea2.value = "Tja hej vänner!";
|
|
</script>
|