W3C home > Mailing lists > Public > www-validator@w3.org > June 2005

Re: a bug or a missunderstanding

From: David Dorward <david@dorward.me.uk>
Date: Wed, 22 Jun 2005 11:48:33 +0100
To: Gerhard Loosch <loosch@glamus.de>
Cc: www-validator@w3.org
Message-ID: <20050622104833.GC30548@us-lot.org>

On Wed, Jun 22, 2005 at 09:22:21AM +0200, Gerhard Loosch wrote:
> The validator reported, that I must not place an block-element (like h1)
> inside an inline-element (like a). As You can see, my a-element is
> explicitely set to 'display: block;'.

Setting an inline element to display like a block element does not
make it a block element - it just looks like one if the browser
supports CSS.

> Is it a bug or a missing feature of the validator, not to interpret the
> style-directive display: block and still assuming, any a-element to be an
> inline-element?

Feature. CSS is a presentation language, it doesn't alter the
structure of the page.

David Dorward                                      http://dorward.me.uk
Received on Wednesday, 22 June 2005 10:48:38 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 22:58:51 UTC