Re: Grammatical Error in Validator Text

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 UTC