Skip to content
New issue

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

Self-closing tag "hr" is creating closing tag when minifying #17

Closed
marcortola opened this issue Feb 10, 2018 · 1 comment
Closed

Self-closing tag "hr" is creating closing tag when minifying #17

marcortola opened this issue Feb 10, 2018 · 1 comment

Comments

@marcortola
Copy link

marcortola commented Feb 10, 2018

Self-closing tag "hr" is creating closing tag when minifying the HTML code. It seems to happen when executing this function:

$html = $dom->fixHtmlOutput(
$this->domNodeToString($dom->getDocument()),
$decodeUtf8Specials
);

This makes the minifier to produce bad HTML markup that does not pass the W3C validation throwing this error: Stray end tag “hr”.

How can I reproduce it?

Try to minify <hr> or <hr/>

@marcortola marcortola changed the title Self-closing tag "hr" is creating closing tag when minifying HTML Self-closing tag "hr" is creating closing tag when minifying Feb 10, 2018
voku added a commit that referenced this issue Feb 12, 2018
@voku
Copy link
Owner

voku commented Feb 12, 2018

thanks for the bug-report ... fixed in version 3.0.2

@voku voku closed this as completed Feb 12, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants