From 56d5fa1737d9746af4dc9825224f327ca04d9b20 Mon Sep 17 00:00:00 2001 From: ExE Boss <3889017+ExE-Boss@users.noreply.github.com> Date: Wed, 4 Dec 2019 15:20:00 +0100 Subject: [PATCH 1/3] =?UTF-8?q?fix:=20Use=C2=A0`HTMLDocument`=20where?= =?UTF-8?q?=C2=A0applicable?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- dom.bs | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/dom.bs b/dom.bs index 77c27cb29..e5a449170 100644 --- a/dom.bs +++ b/dom.bs @@ -86,9 +86,10 @@ This specification standardizes the DOM. It does so as follows:

This specification depends on the Infra Standard. [[!INFRA]] -

Some of the terms used in this specification are defined in Encoding, +

Some of the terms used in this specification are defined in Encoding, HTML, Selectors, Web IDL, XML, and Namespaces in XML. [[!ENCODING]] +[[!HTML]] [[!SELECTORS4]] [[!WEBIDL]] [[!XML]] @@ -5537,7 +5538,7 @@ with that document. interface DOMImplementation { [NewObject] DocumentType createDocumentType(DOMString qualifiedName, DOMString publicId, DOMString systemId); [NewObject] XMLDocument createDocument(DOMString? namespace, [TreatNullAs=EmptyString] DOMString qualifiedName, optional DocumentType? doctype = null); - [NewObject] Document createHTMLDocument(optional DOMString title); + [NewObject] HTMLDocument createHTMLDocument(optional DOMString title); boolean hasFeature(); // useless; always returns true }; @@ -5573,7 +5574,7 @@ interface DOMImplementation {

doc = document . {{Document/implementation}} . createHTMLDocument([title])
- Returns a document, with a basic + Returns an {{HTMLDocument}}, with a basic tree already constructed including a <{title}> element, unless the title argument is omitted. @@ -5640,7 +5641,7 @@ The method, when invoked, must run these steps:
    -
  1. Let doc be a new document that is an HTML document. +

  2. Let doc be a new {{HTMLDocument}}.

  3. Set doc's content type to "text/html". From 8866a83fea9c168fd746f1d373ebafbb71c54e32 Mon Sep 17 00:00:00 2001 From: ExE Boss <3889017+ExE-Boss@users.noreply.github.com> Date: Thu, 5 Dec 2019 17:00:00 +0100 Subject: [PATCH 2/3] =?UTF-8?q?fix:=20Improve=C2=A0wording=20of=C2=A0`crea?= =?UTF-8?q?te*Document(=E2=80=A6)`=20method=C2=A0definitions?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Anne van Kesteren --- dom.bs | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/dom.bs b/dom.bs index e5a449170..4ea3aa8db 100644 --- a/dom.bs +++ b/dom.bs @@ -5559,7 +5559,7 @@ interface DOMImplementation {

    doc = document . {{Document/implementation}} . createDocument(namespace, qualifiedName [, doctype = null])
    - Returns an {{XMLDocument}}, with a + Returns an {{XMLDocument}} object, with a document element whose local name is qualifiedName and whose @@ -5574,7 +5574,7 @@ interface DOMImplementation {
    doc = document . {{Document/implementation}} . createHTMLDocument([title])
    - Returns an {{HTMLDocument}}, with a basic + Returns an {{HTMLDocument}} object, with a basic tree already constructed including a <{title}> element, unless the title argument is omitted. @@ -5604,7 +5604,7 @@ method, when invoked, must run these steps: method, when invoked, must run these steps:
      -
    1. Let document be a new {{XMLDocument}}. +

    2. Let document be a new {{XMLDocument}} object.

    3. Let element be null. @@ -5641,7 +5641,7 @@ The method, when invoked, must run these steps:

        -
      1. Let doc be a new {{HTMLDocument}}. +

      2. Let doc be a new {{HTMLDocument}} object.

      3. Set doc's content type to "text/html". @@ -10170,6 +10170,7 @@ Elliott Sprehn, Emilio Cobos Álvarez, Eric Bidelman, Erik Arvidsson, +ExE Boss, Gary Kacmarcik, Gavin Nicol, Giorgio Liscio, From 4818617df345b4abca6cc901489d398a2d8425d8 Mon Sep 17 00:00:00 2001 From: ExE Boss <3889017+ExE-Boss@users.noreply.github.com> Date: Mon, 9 Dec 2019 12:00:00 +0100 Subject: [PATCH 3/3] =?UTF-8?q?fix:=20Attempt=C2=A0to=C2=A0define=20HTMLDo?= =?UTF-8?q?cument=C2=A0reference?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- dom.bs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/dom.bs b/dom.bs index 6e3511bca..524defb7c 100644 --- a/dom.bs +++ b/dom.bs @@ -21,6 +21,8 @@ urlPrefix: https://www.w3.org/TR/xml-names/#NT- url: https://w3c.github.io/DOM-Parsing/#dfn-createcontextualfragment-fragment type: method; text: createContextualFragment(); for: Range type: interface + url: https://html.spec.whatwg.org/multipage/dom.html#htmldocument + text: HTMLDocument url: https://w3c.github.io/touch-events/#idl-def-touchevent text: TouchEvent url: https://w3c.github.io/deviceorientation/spec-source-orientation.html#devicemotion