views:

27

answers:

1

I have 12 errors, but some are just pure non existent. 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"&gt;

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

+2  A: 

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.

David Dorward
Don't be absurd, `<foo>` isn't a real HTML element ;-)
Andy E
Thanks, added cols and rows. About the `value=""` how would I prevent another value being added? What is inserting this new value?
Kyle Sevenoaks
I don't know what template language you are using, let alone how it works.
David Dorward
Sorry, it's smarty php.
Kyle Sevenoaks
Still don't know how it works. I haven't touched PHP for anything but the most trivial toy scripts for over half a decade.
David Dorward