Skip to content

Commit

Permalink
Update explanation why type !== 'empty'
Browse files Browse the repository at this point in the history
  • Loading branch information
xemlock committed Aug 7, 2019
1 parent 8fb1c0f commit 006684d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion library/HTMLPurifier/HTMLModule/HTML5/Iframe.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ public function setup($config)
// - https://www.w3.org/TR/html52/semantics-embedded-content.html#the-iframe-element
// - https://www.w3.org/TR/html50/embedded-content-0.html#the-iframe-element

// contents must not be 'empty', otherwise <iframe> won't have closing tag
// type must not be 'empty', otherwise <iframe> will not have an end tag
$iframeContents = new HTMLPurifier_ChildDef_Empty();
$iframeContents->type = 'iframe';

Expand Down

0 comments on commit 006684d

Please sign in to comment.