Open meowgorithm opened 12 years ago
I'm finding that, after going through the django-htmlmin middleware implicity self-closing tags (HTML5-style) are becoming explicity self-closed tags (XHTML-style).
For example the <meta> tag here…
<meta>
<!DOCTYPE html> <html> <head> <meta charset="utf-8">
…incorrectly becomes self-closing after going through the middleware:
<!DOCTYPE html><html><head><meta charset="utf-8" />
Looks like bs4 still handles it wrongly, even with html5lib. I will take a look later.
Why not simply use html5lib directly and use it to serialize the tree?
I'm finding that, after going through the django-htmlmin middleware implicity self-closing tags (HTML5-style) are becoming explicity self-closed tags (XHTML-style).
For example the
<meta>
tag here……incorrectly becomes self-closing after going through the middleware: