django-livereload-server icon indicating copy to clipboard operation
django-livereload-server copied to clipboard

middleware messes up link and meta elements in head

Open beda42 opened this issue 7 years ago • 0 comments

Hi, I found out that if link and meta elements in head are not closed (like this ), using the LiveReloadScript middleware will close them for me ().

What is worse, if some of them are already closed, then the rest are not closed by the / before the end > (), but a closing tag is created somewhere further down the head element, which messes things up completely. I suppose that the HTML is mangled by beautifulsoup when the script is injected.

Cheers Beda

beda42 avatar Jun 26 '18 07:06 beda42