ladybird/Tests/LibWeb/Layout/input/textarea-content.html
Timothy Flynn abc1be5b9e LibWeb: Update the <textarea> shadow DOM when the value attribute is set
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.
2024-03-16 13:11:57 +01:00

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>