W3C home > Mailing lists > Public > www-validator@w3.org > August 2004

Re: Validator allows designers to do invalid nesting through <ins>

From: David Dorward <david@dorward.me.uk>
Date: Tue, 10 Aug 2004 19:16:54 +0100
To: ghi@ctmagazin.de
Cc: www-validator@w3.org
Message-Id: <1092161813.8860.6.camel@localhost>

On Tue, 2004-08-10 at 19:03, Gerald Himmelein wrote:
> However, if you surround the invalid nesting with <ins> tags,
> validator.w3.org declares the syntax to be valid:
> <p>
> Paragraph text
> <ins>
> <ul>

Its a limitation of DTDs. There isn't anyway to express that X is
allowed as a child of Y *unless* Y is a child of Z.

> I've got a web designer here who swears that the <ins> usage is
> completely valid because, after all, validator.w3.org confirms it.

While it is *valid* HTML, it is non-conforming. Validation only checks
for a subset of conformance to the specification (i.e. that which can be
expressed using the DTD).

To quote:

        The INS and DEL elements must not contain block-level content
        when these elements behave as inline elements.
                ILLEGAL EXAMPLE: 
                The following is not legal HTML.
                <INS><DIV>...block-level content...</DIV></INS>
David Dorward       <http://blog.dorward.me.uk/>   <http://dorward.me.uk/>
Received on Tuesday, 10 August 2004 18:19:24 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 1 March 2016 14:17:42 UTC