Skip to content

Commit

Permalink
HtmxOneNineTenScriptPreprozessor renamed to HtmxOneNineTenScriptPrePr…
Browse files Browse the repository at this point in the history
…ocessor (second try)
  • Loading branch information
rbri committed Jan 15, 2024
1 parent daf38bd commit 1417ff2
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 5 deletions.
7 changes: 7 additions & 0 deletions src/changes/changes.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,13 @@
</properties>

<body>
<release version="3.11.0" date="February xx, 2024" description="Chrome/Edge 120, Firefox 120, neko script parsing, Bugfixes">
<action type="add" dev="rbri">
HtmxOneNineTenScriptPreprozessor renamed to HtmxOneNineTenScriptPreProcessor.
</action>
</release>


<release version="3.10.0" date="January 14, 2024" description="Chrome/Edge 120, Firefox 120, neko script parsing, Bugfixes">
<action type="add" dev="rbri">
Htmx 1.9.10 support when using the org.htmlunit.javascript.preprocessor.HtmxOneNineTenScriptPreprozessor.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,15 +24,15 @@
*
* @author Ronald Brill
*/
public class HtmxOneNineTenScriptPreProzessor implements ScriptPreProcessor {
public class HtmxOneNineTenScriptPreProcessor implements ScriptPreProcessor {

private final ScriptPreProcessor nextScriptPreProcessor_;

public HtmxOneNineTenScriptPreProzessor() {
public HtmxOneNineTenScriptPreProcessor() {
nextScriptPreProcessor_ = null;
}

public HtmxOneNineTenScriptPreProzessor(final ScriptPreProcessor nextScriptPreProcessor) {
public HtmxOneNineTenScriptPreProcessor(final ScriptPreProcessor nextScriptPreProcessor) {
nextScriptPreProcessor_ = nextScriptPreProcessor;
}

Expand Down
4 changes: 2 additions & 2 deletions src/test/java/org/htmlunit/libraries/HtmxTest1x9x10.java
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
package org.htmlunit.libraries;

import org.htmlunit.WebClient;
import org.htmlunit.javascript.preprocessor.HtmxOneNineTenScriptPreProzessor;
import org.htmlunit.javascript.preprocessor.HtmxOneNineTenScriptPreProcessor;
import org.htmlunit.junit.BrowserRunner;
import org.htmlunit.junit.BrowserRunner.Alerts;
import org.htmlunit.junit.BrowserRunner.HtmlUnitNYI;
Expand Down Expand Up @@ -53,7 +53,7 @@ public void htmx() throws Exception {
protected void setupWebClient(final WebClient webClient) {
super.setupWebClient(webClient);

webClient.setScriptPreProcessor(new HtmxOneNineTenScriptPreProzessor());
webClient.setScriptPreProcessor(new HtmxOneNineTenScriptPreProcessor());
webClient.getOptions().setThrowExceptionOnScriptError(false);
}
}

0 comments on commit 1417ff2

Please sign in to comment.