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: <>
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?")

Received on Saturday, 4 December 1999 05:16:07 UTC

This archive was generated by hypermail 2.3.1 : Friday, 13 July 2018 08:58:58 UTC