mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-10-26 14:57:54 +03:00
abc1be5b9e
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.
16 lines
444 B
HTML
16 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>
|