I don not see any reason why the close tag "/" at the end of never works when you need to import a JavaScript. I had to go through a thousand line code just to find that this was the bug. Shouldnt HTML automatically parse the end of tag closes?
Asked
Active
Viewed 36 times
0
-
I suspect because script tags can have actual script within them. – Donal Jun 04 '15 at 19:38
-
2Because that is how the tag is required to be. – epascarello Jun 04 '15 at 19:38
-
I firmly believe there must be an explanation why specifically just this tag – lostalien Jun 05 '15 at 20:48
-
Looks like I found the answer after looking it up. The script tag is a content holding tag and would be requiring it to conform with th elikes of Paragrah and title tags that camnnot be self closed. This is because the Script tag accoriding to XHTML specs was designed to hold CDATA in it. And hence will be a good point to note for future debugging that we should not self close scrip tags. – lostalien Jun 05 '15 at 20:54