Skip to content

Commit 5279398

Browse files
committed
Minor improvement of trusted-create-html scriptlet
1 parent 3703f5e commit 5279398

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/js/resources/create-html.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ function trustedCreateHTML(
6060
// We do not want to recursively create elements
6161
self.trustedCreateHTML = true;
6262
let ancestor = self.frameElement;
63-
while ( ancestor !== null ) {
63+
while ( ancestor ) {
6464
const doc = ancestor.ownerDocument;
6565
if ( doc === null ) { break; }
6666
const win = doc.defaultView;

0 commit comments

Comments
 (0)