Tumblr javascript警告/错误

时间:2014-09-25 03:13:25

标签: html tumblr

对于我的无能,我非常抱歉,如果有人能帮我验证这一点,我会非常感激。

警告

Warning Line 2, Column 653: The language attribute on the script element is obsolete. You can safely omit it.

…/assets/scripts/pre_tumblelog.js?_v=e90984c6ca35aacd4904439beb8bf066"></script>

错误

Error Line 3, Column 121: Stray doctype.
….0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">


Error Line 15, Column 66: Stray start tag html.
<html xmlns="http://www.w3.org/1999/xhtml" dir="ltr" lang="en-US">


Error Line 15, Column 66: Cannot recover after last error. Any further errors will be ignored.
<html xmlns="http://www.w3.org/1999/xhtml" dir="ltr" lang="en-US">

1 个答案:

答案 0 :(得分:0)

警告

可悲的是,你无法对这个错误做些什么。该错误源自Tumblrs自己的脚本:

…/assets/scripts/pre_tumblelog.js

这是他们必须直接解决的问题。也许是消息支持让他们抬起头来。

<强>错误

没有代码,这是猜测。您似乎错过了导致<!doctype>标记错误的<html>。替换为以下内容:

<!doctype html>
<html dir="ltr" lang="en-us">

您可能还有两个<html>代码,但不允许这样做。