Skip to content

Conversation

@nicolas-grekas
Copy link
Member

Q A
Branch? 7.4
Bug fix? yes
New feature? no
Deprecations? no
Issues Fix #62176
License MIT

Much better than #62180

@PhilETaylor
Copy link
Contributor

Thanks for taking a second look. I have applied this PR to my live site and the unit tests are passing again, meaning the b/c break has been resolved.

@nicolas-grekas nicolas-grekas merged commit 6aeeb25 into symfony:7.4 Oct 28, 2025
12 checks passed

private function copyFromHtml5ToDom(\Dom\Node $source, \DOMDocument $target): void
{
/** @var list<array{0: iterable<\Dom\Node>, 1: ?\DOMNode}> $stack */
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can the key 1 really be nullable ? The code does not handle null values when using it.

Copy link
Member Author

@nicolas-grekas nicolas-grekas Oct 28, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

right, I forgot to clean this up from a previous iteration, I'll do a hotpatch

@nicolas-grekas nicolas-grekas deleted the html5-fix branch October 28, 2025 09:23
This was referenced Nov 2, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[DomCrawler] Native HTML5 parser on PHP 8.4 b/c change with alpinejs

4 participants