W3C home > Mailing lists > Public > www-validator@w3.org > March 2006

Forcing validation when headings/paragraphs are nested inside an anchor

From: alan stonebridge <alan_stonebridge@dennis.co.uk>
Date: Tue, 28 Mar 2006 16:33:49 +0100
Message-id: <200603281607.k2SG7HIe011731@mail.dennis.co.uk>
To: www-validator@w3.org

The h3 and p tags in the following fail validation as XHTML 1.0
Transitional (and Strict also):

<a href="http://www.pcpro.co.uk" >
	<h3>Category Name</h3>
	<img src="test.jpg" />
	<p>Category winner</p>

This passes validation by wrapping the h3 or p inside empty object tags:

<a href="http://www.pcpro.co.uk" >
	<object><h3>Category Name</h3></object>
	<img src="test.jpg" />
	<object><p>Category winner</p></object>

Does the validator just ignore HTML that is nested in an object tag, or is
this expected?

Alan Stonebridge

Senior Producer
Electronic Publishing Unit, Dennis Publishing Ltd

NOTE: The information in this email is confidential and may be legally
privileged, unless stated to the contrary. If you are not the intended recipient, you must not read, use or disseminate that information.
Any opinions or comments are personal to the writer and do not represent the
official view of Dennis Publishing Ltd. If you have received this email and are not a named addressee, please contact itdirector@dennis.co.uk immediately by reply email and then delete this message from your system. Please do not copy it or use it for any purpose, or disclose its contents to any other person.
Although this email and any attachments are believed to be free of any virus, or other defects, it is the responsibility of the recipient to ensure that they are virus free and no responsibility is accepted by Dennis Publishing Ltd for any loss or damage arising from the receipt or use thereof.
Received on Wednesday, 29 March 2006 14:45:02 UTC

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