W3C home > Mailing lists > Public > www-html@w3.org > May 2001

Re: html validator (buggy?)

From: Christian Smith <csmith@barebones.com>
Date: Sat, 26 May 2001 00:21:26 -0400
To: James Craig <james_craig@Powered.com>
cc: "'www-html@w3.org'" <www-html@w3.org>
Message-ID: <20010526002128-b01010701-ec085958@>
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

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 15:05:57 UTC