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

Re: Grammatical Error in Validator Text

From: Jukka K. Korpela <jkorpela@cs.tut.fi>
Date: Tue, 7 Mar 2006 13:34:07 +0200 (EET)
To: asquinkin-pumpkin@yahoo.com
cc: www-validator@w3.org
Message-ID: <Pine.GSO.4.64.0603071325080.15987@korppi.cs.tut.fi>

On Mon, 6 Mar 2006, asquinkin-pumpkin@yahoo.com wrote:

> Try this:
>
>     Below is an outline for this document,
>     automatically generated from the heading
>     tags (<h1> through <h6>).

While discussing the grammar, I might add that the wording is not quite 
correct. The outline is not generated from the tags <h1> through <h6> 
alone but from the heading _elements_. (You need to recognize the 
end tags, too, and keep track of the content, discarding any 
inner markup.) Replacing "tags" by "elements" would thus be an 
improvement.

By the way, generating the outline might be useful as such, independently 
of validation. It could even be used by end users (non-authors) who 
stumble across a long page with many headings but no table of content. But 
for such use, the extended interface would need to have a checkbox
"No diagnostics", allowing the validator be used without validation
(well, without validator messages). :-)

-- 
Jukka "Yucca" Korpela, http://www.cs.tut.fi/~jkorpela/
Received on Tuesday, 7 March 2006 11:34:13 GMT

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