Stefano, We've considered CyberNeko HTML parser. We abandoned it because Swing HTML implementation doesn't need DOM. (Other parsers mostly do the same.)
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 JavaDoc. Regards, Alexey. -- Alexey A. Ivanov Intel Middleware Product Division >-----Original Message----- >From: Stefano Mazzocchi [mailto:[EMAIL PROTECTED] >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 component > >Ivanov, Alexey A wrote: >> Hi all, >> >> I'd like to announce the contribution of javax.swing.text.html package >> on behalf of Intel. The archive can be found here: >> >> https://issues.apache.org/jira/browse/HARMONY-948 > >Nice! > >> The contribution includes new files implementing HTML text functionality >> and a small patch for already existing files in javax.swing to integrate >> 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 making >> 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 some >> 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 the >> 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 license. > >-- >Stefano. > > >--------------------------------------------------------------------- >Terms of use : http://incubator.apache.org/harmony/mailing.html >To unsubscribe, e-mail: [EMAIL PROTECTED] >For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- Terms of use : http://incubator.apache.org/harmony/mailing.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]