[ 
https://issues.apache.org/jira/browse/JSPWIKI-1206?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18138319#comment-18138319
 ] 

ASF subversion and git services commented on JSPWIKI-1206:
----------------------------------------------------------

Commit fdb4a6ed4fa92cb89b39c8e0da1f0e18226d043f in jspwiki's branch 
refs/heads/master from Arturo Bernal
[ https://gitbox.apache.org/repos/asf?p=jspwiki.git;h=fdb4a6ed4 ]

JSPWIKI-1206 JSPWIKI-1221 Migrate from NekoHTML to htmlunit-neko

org.codelibs:nekohtml is no longer maintained. Use org.htmlunit:neko-htmlunit,
which needs Java 17 like the rest of the project.

The new parser does not recognise the SAX validation feature that JDOM's
XMLReaderSAX2Factory sets, and reports a null namespace URI for the attributes,
which JDOM rejects. HtmlStringToWikiTranslator now gives JDOM its own reader
factory, wrapping the parser in a filter that turns those URIs into empty
strings. Element names are now lower case, as in XHTML, so the few hard coded
upper case names in the translator are lower case too.

jspwiki-main declared the dependency without using it, so it is dropped there.


> Migrate from neko-html to htmlunit-neko parser
> ----------------------------------------------
>
>                 Key: JSPWIKI-1206
>                 URL: https://issues.apache.org/jira/browse/JSPWIKI-1206
>             Project: JSPWiki
>          Issue Type: Improvement
>            Reporter: Ronald Brill
>            Priority: Major
>              Labels: pull-request-available
>
> htmlunit-neko (https://github.com/HtmlUnit/htmlunit-neko) is a fork of the 
> original NekoHTML parser that is actively maintained by the HtmlUnit team. 
> This parser has evolved significantly since the original project was 
> abandoned and offers substantial improvements for modern HTML processing 
> needs like
>  * many parser improvements
>  * performance improvements
>  * xerces dependency removed
>  * bunch of fixes for html parser border cases
>  * regular releases
>  * ....
> Outside of the package name changes, the lib should be compatible 
> ([https://github.com/HtmlUnit/htmlunit-neko?tab=readme-ov-file#porting-from-3x-to-4x)]
> If you like to do this and face any issue, please reach out to me and a will 
> try to help.



--
This message was sent by Atlassian Jira
(v10.3.26#10030026)

Reply via email to