Open niloc132 opened 4 years ago
Apart from the issue that "newer" ES features might not be supported, ES6 and HTML 4.1 seems like a weird combination. Also, previous to HTML5 there should be a type
attribute in your script
tag :)
Whoops, yeah, copied the wrong doctype string. Doctype should not affect this though, but I'll double check to be sure (and my experience always was that it is "required" in theory, but rarely in practice).
@niloc132 did you check if Rhino supports these features and if htmlunit-core-js is up to date?
regarding core-js - please trust me this is up to data. Have spend a lot of time during the last year to backport some of our changes to rhino and improving rhino at various places. Have a look at commit list - i did most of the changes for the last releases. But Rhino still lacks some js features. Any help is welcome.
Just stumbled over this again. Here's a (mostly red) es2015 support chart: https://mozilla.github.io/rhino/compat/engines.html @rbri is there a list of things that work with your improvements upon Rhino?
have merged back nearly all improvements into rhino and rhino makes some good progress at the moment. Let's cross our fingers
see #755
Tested on 2.36.0, 2.37.0 in maven central. Here's a sample HTML file that demonstrates the issue - works in any modern browser, but does not work in htmlunit:
Output in chrome, ff:
hello world
.Is this something that needs to be explicitly done upstream in rhino? I didn't find a bug report or PR on their github repo, but I could well have missed it.
Full stack trace of the failure when it occurred: