diet-ng icon indicating copy to clipboard operation
diet-ng copied to clipboard

Self Closing script tags don't (universally?) work

Open infinityplusb opened this issue 7 years ago • 2 comments

Using a tag in a template like so: script(src='Leaflet/leaflet.js')

is generating html like: <script src="Leaflet/leaflet.js"/> instead of <script src="./Leaflet/leaflet.js"> </script>

This is apparently a "known" issue. Also, the spec for Jade states that using the script tag should generate opening and closing tags.

Is there a way to force the generation of the closing tag?

infinityplusb avatar Jun 21 '18 01:06 infinityplusb

Doing something like:

script(src='Leaflet/leaflet.js')
    | 

is a workaround.

infinityplusb avatar Jun 28 '18 03:06 infinityplusb

I think this is fixed, it doesn't seem to happen any more?

schveiguy avatar Oct 11 '19 13:10 schveiguy