mirror of
https://github.com/servo/servo.git
synced 2025-08-12 08:55:32 +01:00
Auto merge of #20054 - ferjm:innertext.setter, r=emilio
Implement element.innerText setter - [X] `./mach build -d` does not report any errors - [X] `./mach test-tidy` does not report any errors - [X] These changes fix #16107 - [X] There are tests for these changes <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/20054) <!-- Reviewable:end -->
This commit is contained in:
commit
a6113af873
4 changed files with 60 additions and 370 deletions
|
@ -9,6 +9,7 @@
|
|||
// tests a not-rendered case.
|
||||
|
||||
function setupTest(context, plain) {
|
||||
var container = document.getElementById("container");
|
||||
// context is either a string or an element node
|
||||
if (typeof context === "string") {
|
||||
container.innerHTML = context;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue