脚本上的HTML5验证错误?

时间:2015-03-31 06:11:48

标签: javascript html5 mime-types

我的HTML5验证错误

Error: Bad value text for attribute type on element script: Subtype missing.

From line 316, column 1; to line 316, column 40

e="1" />↩↩<script id="viewModel" type="text">↩ {

Syntax of MIME type:
    A media-type as defined in RFC 2616; that is, typically, a required type, followed by a "/" character, followed by a required subtype, optionally followed by one or more instances of a ";" character followed by a parameter. Examples: text/css, text/css;charset=utf-8.

我需要做些什么才能解决这个错误?

1 个答案:

答案 0 :(得分:1)

脚本类型不能是纯文本。接下来是这样的子类型:

text/javascript
text/vbscript