Skip to content

Commit 3d31812

Browse files
committed
Revert "latest neko"
This reverts commit 4bc3d36.
1 parent 4bc3d36 commit 3d31812

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/main/java/org/htmlunit/html/parser/neko/HtmlUnitNekoDOMBuilder.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@
3232
import org.htmlunit.WebResponse;
3333
import org.htmlunit.cyberneko.HTMLConfiguration;
3434
import org.htmlunit.cyberneko.HTMLElements;
35+
import org.htmlunit.cyberneko.HTMLEventInfo;
3536
import org.htmlunit.cyberneko.HTMLScanner;
3637
import org.htmlunit.cyberneko.HTMLTagBalancingListener;
3738
import org.htmlunit.cyberneko.xerces.parsers.AbstractSAXParser;
@@ -758,7 +759,7 @@ HtmlElement getBody() {
758759
}
759760

760761
private static boolean isSynthesized(final Augmentations augs) {
761-
return augs.isSynthesized();
762+
return augs instanceof HTMLEventInfo && ((HTMLEventInfo) augs).isSynthesized();
762763
}
763764

764765
private static void appendChild(final DomNode parent, final DomNode child) {

0 commit comments

Comments
 (0)