FranckFreiburger / http-vue-loader

load .vue files from your html/js
MIT License
1.49k stars 275 forks source link

Possible issue with template parsing and self-closed HTML elements #50

Closed sp00x closed 6 years ago

sp00x commented 6 years ago

I suspect there is something odd in the way this module handles the templates as I had used a <div .. /> instead of <div></div> in my <template> block, and that broke various things in the template.

Worked just fine on codesandbox.io where I fiddled around and tested first..

Might be worth looking into, I don't have any repro sample handy at the moment - just filing this so I don't forget..

FranckFreiburger commented 6 years ago

Just note that <div .. /> is not valid html, and afaik, vue template compiler require valid html input

sp00x commented 6 years ago

Aha, thanks. It's probably just that some browsers are a bit too forgiving and accepts this in regular HTML then.