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

Re: Validator does not report improperly terminated tags

From: David Dorward <david@dorward.me.uk>
Date: Tue, 2 Aug 2011 10:25:40 +0100
Cc: <www-validator@w3.org>
Message-Id: <66B976CB-F172-4C57-9DBE-40624E844F25@dorward.me.uk>
To: jpkozma@knology.net

On 1 Aug 2011, at 01:57, jpkozma@knology.net wrote:

> The attached document was submitted by a student of mine.  It includes paragraph tags that are terminated as empty elements, and as such, I don't think it should be considered valid under the strict DTD.

<!ELEMENT p %Inline;>
<!ATTLIST p
%attrs;
>

<!ENTITY % Inline "(#PCDATA | %inline; | %misc.inline;)*">

Paragraphs contain zero or more (various things). It is valid. (Nonsense, but still valid)


>  Nevertheless, the w3c validator reports it as valid.  Validator.nu does 
> report the improperly terminated paragraph tags as errors.

That looks like Appendix C checking. 

http://qa-dev.w3.org/~bjoern/appendix-c/validator/

-- 
David Dorward
http://dorward.me.uk
Received on Tuesday, 2 August 2011 09:26:11 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 25 April 2012 12:14:48 GMT