Re: Validator does not report improperly terminated tags

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 UTC