harmony-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ivanov, Alexey A" <alexey.a.iva...@intel.com>
Subject RE: Contribution of the HTML sub-component of the SWING component
Date Mon, 24 Jul 2006 11:19:24 GMT

We've considered CyberNeko HTML parser. We abandoned it because Swing
HTML implementation doesn't need DOM. (Other parsers mostly do the

The API for HTML parser is specified by JavaDoc, and we must call these
methods while building up the content of HTMLDocument. Of course, we can
iterate DOM and call the required functions to build HTML structure. On
the other hand, the DOM won't be used any more. Another point is loading
an HTML document could be performed asynchronously. (This hasn't been
implemented yet, however.)

So I think adapting an existing parser so that HTMLDocument is built
on-the-fly (and incrementally) without generating DOM tree might not be
the best alternative. And parser should be DTD-based, as specified by


Alexey A. Ivanov
Intel Middleware Product Division

>-----Original Message-----
>From: Stefano Mazzocchi [mailto:stefano@apache.org]
>Sent: Friday, July 21, 2006 7:42 PM
>To: harmony-dev@incubator.apache.org
>Subject: Re: Contribution of the HTML sub-component of the SWING
>Ivanov, Alexey A wrote:
>> Hi all,
>> I'd like to announce the contribution of javax.swing.text.html
>> on behalf of Intel. The archive can be found here:
>> https://issues.apache.org/jira/browse/HARMONY-948
>> The contribution includes new files implementing HTML text
>> and a small patch for already existing files in javax.swing to
>> the new code.
>> The package is incomplete, the code there is not sufficient to enable
>> those nice help windows in jEdit... yet. If anyone wants to help
>> it complete, you have an excellent chance to do so!
>> For the biggest issue, there is no HTML parser. Some tags are not
>> supported yet, such as AREA, MAP, APPLET, IFRAME, OBJECT, PARAM and
>> others, as well as incomplete support of CSS1 properties. The list of
>> known issues and TODOs can be found in the README file included in
>> contribution, as well as the building and testing instructions.
>> Please don't hesitate to contact me for more details if needed, and I
>> intend to keep working on this package in Harmony.
>Have you considered using Andy Clark's CyberNeko HTML parsing extension
>to Xerces as an HTML parser?
> http://people.apache.org/~andyc/neko/doc/html/index.html
>It works on top of Xerces (which we ship already), it works great (can
>turn any HTML into a DOM), it's pure java and it has a compatible
>Terms of use : http://incubator.apache.org/harmony/mailing.html
>To unsubscribe, e-mail: harmony-dev-unsubscribe@incubator.apache.org
>For additional commands, e-mail: harmony-dev-help@incubator.apache.org

Terms of use : http://incubator.apache.org/harmony/mailing.html
To unsubscribe, e-mail: harmony-dev-unsubscribe@incubator.apache.org
For additional commands, e-mail: harmony-dev-help@incubator.apache.org

View raw message