Auto merge of #15303 - nox:open-your-heart-to-eternal-dimension, r=jdm

Implement document.open and document.close

<!-- 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/15303)
<!-- Reviewable:end -->
This commit is contained in:
bors-servo 2017-02-03 10:53:46 -08:00 committed by GitHub
commit fa60ce62b8
50 changed files with 412 additions and 232 deletions

View file

@ -111,9 +111,11 @@ partial /*sealed*/ interface Document {
readonly attribute HTMLScriptElement? currentScript;
// dynamic markup insertion
// Document open(optional DOMString type = "text/html", optional DOMString replace = "");
[Throws]
Document open(optional DOMString type = "text/html", optional DOMString replace = "");
// WindowProxy open(DOMString url, DOMString name, DOMString features, optional boolean replace = false);
// void close();
[Throws]
void close();
[Throws]
void write(DOMString... text);
[Throws]