W3C home > Mailing lists > Public > www-validator@w3.org > September 2013

Re: After your "No p element in scope but a p end tag seen." please add " Remember p elements can't be nested"

From: Philip Taylor <P.Taylor@Rhul.Ac.Uk>
Date: Fri, 20 Sep 2013 12:29:03 +0100
Message-ID: <523C317F.9010601@Rhul.Ac.Uk>
To: "Jukka K. Korpela" <jkorpela@cs.tut.fi>, Ruud Steltenpool <r.g.steltenpool@saxion.nl>
CC: www-validator@w3.org


Jukka K. Korpela wrote:

> There are myriads of reasons why a document may contain a homeless
> end tag

Agreed.  But it is surely not beyond the wit of a well-designed
validator to identify the reason for the orphan and to report it,
is it not ?  Where the specification allows for implicit closure
of an open element on encountering an element that would not
be permitted within the scope of the open element (some would argue
that this represents a major design error in the specification, but
that is not relevant here), then a well-designed validator could
usefully report why the apparently-open element had been closed
if and only if an error results therefrom.

Philip Taylor
Received on Friday, 20 September 2013 11:29:29 UTC

This archive was generated by hypermail 2.3.1 : Friday, 20 September 2013 11:29:36 UTC