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:
bors-servo 2018-02-16 05:38:38 -05:00 committed by GitHub
commit a6113af873
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 60 additions and 370 deletions

View file

@ -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;