We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
trusted-create-html
1 parent 3703f5e commit 5279398Copy full SHA for 5279398
src/js/resources/create-html.js
@@ -60,7 +60,7 @@ function trustedCreateHTML(
60
// We do not want to recursively create elements
61
self.trustedCreateHTML = true;
62
let ancestor = self.frameElement;
63
- while ( ancestor !== null ) {
+ while ( ancestor ) {
64
const doc = ancestor.ownerDocument;
65
if ( doc === null ) { break; }
66
const win = doc.defaultView;
0 commit comments