Skip to content

Commit 55d159e

Browse files
authored
Use current global objects in static method. (#342)
Document.parseHTMLUnsafe is a static method and doesn't have a this. This fixes Document.parseHTMLUnsafe's algorithm to use the current global object, rather than this' relevant global object. Analogous to: whatwg/html#11799 Based on: whatwg/html#11778
1 parent 0134965 commit 55d159e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

index.bs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@ partial interface Document {
207207
The <dfn for="Document" method export>parseHTMLUnsafe(|html|, |options|)</dfn> method steps are:
208208

209209
1. Let |compliantHTML| be the result of invoking the [$Get Trusted Type compliant string$] algorithm with
210-
{{TrustedHTML}}, [=this=]'s [=relevant global object=], |html|, "Document parseHTMLUnsafe", and "script".
210+
{{TrustedHTML}}, the [=current global object=], |html|, "Document parseHTMLUnsafe", and "script".
211211
1. Let |document| be a new {{Document}}, whose [=Document/content type=] is "text/html".
212212

213213
Note: Since |document| does not have a browsing context, scripting is disabled.

0 commit comments

Comments
 (0)