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 some spec references #223

Merged
merged 1 commit into from
Apr 17, 2024
Merged
Changes from all commits
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
7 changes: 4 additions & 3 deletions index.bs
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ text: innerHTML; type: attribute; for: Element; url: https://dom.spec.whatwg.org
text: window.toStaticHTML(); type: method; url: https://msdn.microsoft.com/en-us/library/cc848922(v=vs.85).aspx
text: createDocumentFragment; type: method; url: https://dom.spec.whatwg.org/#dom-document-createdocumentfragment
text: template contents; type: dfn; url: https://html.spec.whatwg.org/#template-contents
text: parse HTML from a string; type: dfn; url: https://html.spec.whatwg.org/#parse-html-from-a-string
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This isn't exported in html so have to link to it here.

text: internal slot; type:dfn; url: https://tc39.es/ecma262/#sec-ordinary-object-internal-methods-and-internal-slots
</pre>
<pre class="biblio">
Expand Down Expand Up @@ -172,7 +173,7 @@ The <dfn for="DOM/Document">parseHTMLUnsafe</dfn>(|html|, |options|) method step

Note: Since |document| does not have a browsing context, scripting is disabled.
1. Set |document|'s [=allow declarative shadow roots=] to true.
1. [=Parse HTML=] from a string given |document| and |html|.
1. [=Parse HTML from a string=] given |document| and |html|.
1. Let |config| be the result of calling [=get a sanitizer config from options=]
with |options| and false.
1. If |config| is not [=list/empty=],
Expand All @@ -189,7 +190,7 @@ The <dfn for="DOM/Document">parseHTML</dfn>(|html|, |options|) method steps are:

Note: Since |document| does not have a browsing context, scripting is disabled.
1. Set |document|'s [=allow declarative shadow roots=] to true.
1. [=Parse HTML=] from a string given |document| and |html|.
1. [=Parse HTML from a string=] given |document| and |html|.
1. Let |config| be the result of calling [=get a sanitizer config from options=]
with |options| and true.
1. Call [=sanitize=] on |document|'s [=tree/root|root node=] with |config|.
Expand Down Expand Up @@ -302,7 +303,7 @@ To <dfn>set and filter HTML</dfn>, given an {{Element}} or {{DocumentFragment}}
[=SVG namespace=], then return.
1. Let |config| be the result of calling [=get a sanitizer config from options=]
with |options| and |safe|.
1. Let |newChildren| be the result of the HTML [=fragment parsing algorithm=]
1. Let |newChildren| be the result of the HTML [=fragment parsing algorithm steps=]
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This was in domparsing but it's now in HTML itself, this fixes the link

given |contextElement|, |html|, and true.
1. Let |fragment| be a new {{DocumentFragment}} whose [=node document=] is |contextElement|'s [=node document=].
1. [=list/iterate|For each=] |node| in |newChildren|, [=list/append=] |node| to |fragment|.
Expand Down
Loading