W3C home > Mailing lists > Public > html-tidy@w3.org > October to December 1999

tidy vs block structure

From: Peter Kaiser <kaiser@acm.org>
Date: Sat, 04 Dec 1999 11:13:28 +0100
Message-Id: <3.0.6.32.19991204111328.009a78e0@pop.access.ch>
To: html-tidy@w3.org
Cc: kaiser@acm.org
I'm puzzled at tidy's behavior on some HTML, of which this is typical,
where my intent is for "<tt>" to apply to all the text inside the
outer block, including within the inner block:

	<blockquote><tt>Indented one level.
		<blockquote>Indented two levels.</blockquote>
	Second 1-level indent.</tt></blockquote>

To my naive eye, this looks okay, but tidy (30.11.99) declares

	Warning: missing </tt> before <blockquote>
	Warning: inserting implicit <tt>
	Warning: inserting implicit <tt>

and changes it to

	<blockquote><tt>Indented one level.</tt>
		<blockquote><tt>Indented two levels.</tt></blockquote>
	<tt>Second 1-level indent.</tt></blockquote>

Tidy complains similarly about <pre> ... <Hn> ... </Hn> ... <pre>,
saying that <pre> must be closed before <Hn> and reopened after it.

Do those two kinds of nesting violate the current standard?  (If they
do, then my emotional response is "then what's the purpose of nested
structures at all?")

___Pete
Received on Saturday, 4 December 1999 05:16:07 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 3 April 2012 06:13:42 GMT