Skip to content

Compatibility with HTMX 2.0.10 #1119

@breun

Description

@breun

The current latest release of HtmlUnit (version 4.21.0) comes with HtmxTwoZeroSevenScriptPreProcessor which I've been successfully using with HTMX 2.0.7-2.0.9, but it fails when upgrading to HTMX 2.0.10.

It seems the variable names used in the (minified) HTMX release have changed with version 2.0.10.

  • 2.0.9: i.push(...F(c.querySelectorAll(e))) → 2.0.10: i.push(...F(u.querySelectorAll(e))) (cu)
  • 2.0.9: r.push(...we(i,n)) → 2.0.10: r.push(...ve(i,n)) (weve)

So with HTMX 2.0.10, two of the three push(...) patterns replaced by HtmxTwoZeroSevenScriptPreProcessor#preProcess no longer match and HtmlUnit's JS engine fails when parsing htmx.min.js.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions