2015-03-31 41 views
1

我有奇怪的錯誤在我的HTML5驗證腳本上的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

對於HTML5你可以簡單地刪除該類型屬性 – progsource 2015-03-31 06:16:35

回答

1

腳本類型不能是純文本。它後跟亞型這樣的:

text/javascript 
text/vbscript