Skip to content
Closed
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
4 changes: 2 additions & 2 deletions ext/dom/tests/modern/html/parser/Element_innerHTML.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ $el->innerHTML = "invalid\xffutf-8𐍈𐍈𐍈";
echo $dom->saveXML(), "\n";

// Create a non-interned string that gets the UTF-8 validity flag added
$str = str_repeat("my valid string", random_int(1, 1));
$str = str_repeat("my valid string", random_int(2, 2));
preg_match('/^.*$/u', $str);
$el->innerHTML = $str;
echo $dom->saveXML(), "\n";
Expand Down Expand Up @@ -56,7 +56,7 @@ echo $dom->saveXML(), "\n";
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<div xmlns="http://www.w3.org/1999/xhtml">invalid�utf-8𐍈𐍈𐍈</div>
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<div xmlns="http://www.w3.org/1999/xhtml">my valid string</div>
Comment thread
rr-it marked this conversation as resolved.
Resolved
<div xmlns="http://www.w3.org/1999/xhtml">my valid stringmy valid string</div>
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<style xmlns="http://www.w3.org/1999/xhtml">&lt;p&gt;foo&lt;/p&gt;</style>
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
Expand Down
Loading