|
本帖最后由 myadvertise 于 2010-12-31 20:57 编辑
错误提示如下,纠结很久,无果啊~ WP版本2.85,自定义了一个皮肤主题,看代码提示是搜索代码这个role 属性问题,索性换成了WP默认的主题,同样提示这个错误,而且错误不仅仅是这一个。而且文档声明也不是"strict"而是'transitional'啊,没有拼写、大小写错误啊,
虽然验证出错,但是搜索功能正常使用,不知何解?- Line 430, Column 80: there is no attribute "role"
- …t-container widget_search"><form role="search" method="get" id="searchform" ac…
- ✉
- You have used the attribute named above in your document, but the document type you are using does not support that attribute for this element. This error is often caused by incorrect use of the "Strict" document type with a document that uses frames (e.g. you must use the "Transitional" document type to get the "target" attribute), or by using vendor proprietary extensions such as "marginheight" (this is usually fixed by using CSS to achieve the desired effect instead).
- This error may also result if the element itself is not supported in the document type you are using, as an undefined element will have no supported attributes; in this case, see the element-undefined error message for further information.
- How to fix: check the spelling and case of the element and attribute, (Remember XHTML is all lower-case) and/or check that they are both allowed in the chosen document type, and/or use CSS instead of this attribute. If you received this error when using the <embed> element to incorporate flash media in a Web page, see the FAQ item on valid flash.
复制代码 |
|