开发者

Script tag in XHTML

This might sound like a reaaaally dumb question but...

why do browsers have a fit with this syntax:

<script type='text/javascript' src="/path/to/my.js" />

and want this instead

<script type='开发者_StackOverflow中文版text/javascript' src="/path/to/my.js"></script>

Seems the first construct should be valid since there's no inner content to the tag..

?


Why don't self-closing script tags work?

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜