You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In more recent versions, it stops parsing at the tag <audio /> (if I change to be <audio></audio>, it works), but no errors are generated (->hasErrors() returns false).
Is this behaviour intentional? and is there a way in more recent version to replicate what happens in version 2.2.0 or below?
For the HTML shared above, here is the code I'm running
$html5 = new HTML5();
$html5->loadHTMLFragment($html);
foreach ($fragment->childNodes as $child) {
echo $child->nodeName . "\n";
}
And the respective output in version 2.9.0:
h1
#text
p
#text
ul
#text
p
#text
h2
#text
p
#text
p
#text
audio
but for version 2.2.0, I get
h1
#text
p
#text
ul
#text
p
#text
h2
#text
p
#text
p
#text
audio
#text
video
#text
p
#text
p
#text
ol
The text was updated successfully, but these errors were encountered:
Up to version 2.2.0, the following HTML code will be fully parsed
In more recent versions, it stops parsing at the tag
<audio />
(if I change to be<audio></audio>
, it works), but no errors are generated (->hasErrors() returns false).Is this behaviour intentional? and is there a way in more recent version to replicate what happens in version 2.2.0 or below?
For the HTML shared above, here is the code I'm running
And the respective output in version 2.9.0:
but for version 2.2.0, I get
The text was updated successfully, but these errors were encountered: