Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Use HTMLDocument where applicable #799

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 5 additions & 4 deletions dom.bs
Original file line number Diff line number Diff line change
Expand Up @@ -86,9 +86,10 @@ This specification standardizes the DOM. It does so as follows:

<p>This specification depends on the Infra Standard. [[!INFRA]]

<p>Some of the terms used in this specification are defined in <cite>Encoding</cite>,
<p>Some of the terms used in this specification are defined in <cite>Encoding</cite>, <cite>HTML</cite>,
<cite>Selectors</cite>, <cite>Web IDL</cite>, <cite>XML</cite>, and <cite>Namespaces in XML</cite>.
[[!ENCODING]]
[[!HTML]]
[[!SELECTORS4]]
[[!WEBIDL]]
[[!XML]]
Expand Down Expand Up @@ -5537,7 +5538,7 @@ with that <a>document</a>.
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
};
Expand Down Expand Up @@ -5573,7 +5574,7 @@ interface DOMImplementation {
<dt><code><var>doc</var> = <var>document</var> . {{Document/implementation}} . <a method for=DOMImplementation lt=createHTMLDocument()>createHTMLDocument([<var>title</var>])</a></code>

<dd>
Returns a <a>document</a>, with a basic
Returns an {{HTMLDocument}}, with a basic
ExE-Boss marked this conversation as resolved.
Show resolved Hide resolved
<a>tree</a> already constructed including a
<{title}> element, unless the <var>title</var>
argument is omitted.
Expand Down Expand Up @@ -5640,7 +5641,7 @@ The
method, when invoked, must run these steps:

<ol>
<li><p>Let <var>doc</var> be a new <a>document</a> that is an <a>HTML document</a>.
<li><p>Let <var>doc</var> be a new {{HTMLDocument}}.
ExE-Boss marked this conversation as resolved.
Show resolved Hide resolved

<li><p>Set <var>doc</var>'s <a for=Document>content type</a> to "<code>text/html</code>".

Expand Down