W3C home > Mailing lists > Public > www-lib@w3.org > July to September 1999

Re: structure

From: Raffaele Sena <raff@nuvomedia.com>
Date: Fri, 2 Jul 1999 08:05:50 -0700
Message-ID: <017a01bec49c$6314c380$303728ce@aromatic.com>
To: <xhduan@263.net>, <www-lib@w3.org>
> Use "HText_registerElementCallback" can
> get all elements' attributes.
> use "HText_registerTextCallback" can get text.
> Can I use these two callback functions to build
> a structure of document, like Amaya's Structure View shows?
> or I can build the structure with another better method?
    Yes, you can do that.

    The only drawback is that the current HTML parser "eats" some end-tags.

    Basically for all the tags that have the attribute SGML_EMPTY (see
    the end tag callback is never called.

    And some of them are currently declared "EMPTY" to avoid stack overflow
in the HTML parser
    (basically all the tags where the end tag is optional - i.e. <P>, <TR>,

    I have some code that in some way adds support for the optional end tag
(i.e. close <P> before
    opening any paragraph-type tag, close <TD> before opening another one
and such, but I need to
    clean it up a bit before checking that in.

-- Raffaele
Received on Friday, 2 July 1999 11:03:17 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:33:51 UTC