We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
1.0-alpha.5
8.4
Linux
Hi there. Tags like <br/> and <img src="xyz.jpg"/> are expanded to <br></br> and <img src="xyz.jpg"></img> by Dom\HTMLDocument.
<br/>
<img src="xyz.jpg"/>
<br></br>
<img src="xyz.jpg"></img>
Dom\HTMLDocument
Specifically by $dom->saveHtml().
$dom->saveHtml()
I'll add a failing test for this:
public function test_self_closing_tag(): void { $html = $this->render(<<<'HTML' <html lang="en"><body>Hello<br/>there</body></html> HTML); $this->assertStringEqualsStringIgnoringLineEndings(<<<'HTML' <html lang="en"><body>Hello<br/>there</body></html> HTML, $html); // produces "<html lang="en"><body>Hello<br></br>there</body></html>" }
The text was updated successfully, but these errors were encountered:
test(view): added test that includes self-closing html tag (tempestph…
fdd0562
…p#982)
No branches or pull requests
Tempest version
1.0-alpha.5
PHP version
8.4
Operating system
Linux
Description
Hi there. Tags like
<br/>
and<img src="xyz.jpg"/>
are expanded to<br></br>
and<img src="xyz.jpg"></img>
byDom\HTMLDocument
.Specifically by
$dom->saveHtml()
.Steps to reproduce
I'll add a failing test for this:
The text was updated successfully, but these errors were encountered: