简体   繁体   English

W3验证错误

[英]W3 Validation errors

I have 12 errors, but some are just pure non existent. 我有12个错误,但有些错误完全不存在。 I'm using the smarty templating engine. 我正在使用聪明的模板引擎。

Doctype: 文档类型:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
     "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

Here's the error report , but the "duplicate specification of attribute "value"" simply isn't true according to my .tpl: jsfiddle of .tpl here 这是错误报告 ,但是根据我的.tpl,“属性“值”的重复规范”完全不正确:.tpl的jsfiddle在这里

{textfield class="quetext" value="Epost*" onblur="if(this.value=='') 
this.value='Epost*';" 
onfocus="if(this.value=='Epost*') this.value='';"}

Also, does a textarea require the attribute "rows" and "cols"? 另外, textarea需要属性“行”和“列数”? I thought that was only for tables? 我以为那只是桌子?

And I don't understand what the two errors at the end mean: 我不明白最后的两个错误是什么意思:

Line 586, Column 80: Attribute value redefined... 

Please help! 请帮忙!

Thanks :) 谢谢 :)

(Sorry if things chop and change, I'm working on the valdiation now, to tidy up as many errors as possible.) (很抱歉,如果事情发生了变化,我现在正在研究中,以消除尽可能多的错误。)

the "duplicate specification of attribute "value"" simply isn't true according to my .tpl: 根据我的.tpl,“属性“值”的重复规范”完全不正确:

The validator is only looking at your output. 验证器仅查看您的输出。 You have the value attribute in there twice, no matter what you .tpl says. 不管您.tpl说什么,您都两次拥有value属性。

Also, does a textarea require the attribute "rows" and "cols"? 另外,文本区域是否需要属性“行”和“列数”?

Yes

I thought that was only for tables? 我以为那只是桌子?

Tables don't have those attributes at all 表格根本没有那些属性

Line 586, Column 80: Attribute value redefined... 第586行,第80列:属性值已重新定义...

You have, in essence: <foo value="something" value="something"> 本质上,您具有: <foo value="something" value="something">

This is the same problem as before, except it is the error on the second one rather than the first. 这是与以前相同的问题,除了它是第二个错误而不是第一个错误。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM