Re: html validator (buggy?)

On 5/25/01 at 3:24 PM, james_craig@Powered.com (James Craig) wrote:

> i've had some problems with the w3c html/xhtml validator.
> http://validator.w3.org/ i thought my site was completely "xhtml 1.0
> strict" compliant, but it returns errors for some things that i could
> swear were valid. has anyone else noticed these "bugs"? are they bugs
> or am i an invalid?
> 
> for example, http://www.cookiecrook.com/weblog.php my weblog page
> validates except for one error "attribute target not allowed here"...
> it's in an anchor tag. the spec still allow for targets doesn't it? 

Nope. If you read the spec you'll see that target is "deprecated". It
exists in the transitional DTD but not in strict.

> also, http://www.cookiecrook.com/links.php says "element <input /> not
> allowed here" when it's only in a <form></form> tag. surely that's a
> bug in the validator. 

In strict a tag such as <input /> must be placed within a block level
tag such as <p></p>. It can not exist directly within <form></form>.
It's all in the spec.

-- 
Christian Smith  |  csmith@barebones.com  |  http://web.barebones.com
PGP Fingerprint  -  60E5 2216 97D2 1D1A B923 F036 00A9 CEC0 D411 FA89

Received on Saturday, 26 May 2001 00:17:50 UTC