开发者

W3 Validation errors

I have 12 errors, but some are just pure non existent. I'm using the smarty templating engine.

Doctype:

<!DOCTYPE html PUBLIC "-//开发者_C百科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

{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"? 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:

The validator is only looking at your output. You have the value attribute in there twice, no matter what you .tpl says.

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...

You have, in essence: <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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜