From: RBRi <rb...@us...> - 2019-08-01 17:17:50
|
Sorry for being that late on the issue. Adding support for this is very time consuming. Any help will be great. --- ** [bugs:#1994] Javascript function supportedLocalesOf is missing** **Status:** open **Group:** 2.33 **Created:** Wed Oct 17, 2018 01:43 PM UTC by Robert Scharpf **Last Updated:** Wed Oct 17, 2018 01:43 PM UTC **Owner:** nobody **Attachments:** - [HtmlUnitJS_Bug.java](https://sourceforge.net/p/htmlunit/bugs/1994/attachment/HtmlUnitJS_Bug.java) (1.3 kB; application/octet-stream) - [Output.txt](https://sourceforge.net/p/htmlunit/bugs/1994/attachment/Output.txt) (360.8 kB; text/plain) The test case is attached and also the output. EcmaError: lineNumber=[50] column=[0] lineSource=[<no source>] name=[TypeError] sourceName=[https://support.hpe.com/resources/sahome/static/index.js?20180918155927] message=[TypeError: Cannot find function supportedLocalesOf in object function NumberFormat() { [native code] }. (https://support.hpe.com/resources/sahome/static/index.js?20180918155927#50)] com.gargoylesoftware.htmlunit.ScriptException: TypeError: Cannot find function supportedLocalesOf in object function NumberFormat() { [native code] }. (https://support.hpe.com/resources/sahome/static/index.js?20180918155927#50) at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$HtmlUnitContextAction.run(JavaScriptEngine.java:892) According to https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Collator/supportedLocalesOf this is a suported function of Javascript: The Intl.Collator.supportedLocalesOf() method returns an array containing those of the provided locales that are supported in collation without having to fall back to the runtime's default locale. There are many Javascript errors reported by HtmlUnit. The returned page conatins only the static HTML part while the important dynamic part created by Javascript is missing. Note: The page loads well with IExplorer 11, Firefox 60+, Chrome. Any ideas how I can get the missing dynamic part created by Javascript? Thanks, Robert --- Sent from sourceforge.net because htm...@li... is subscribed to https://sourceforge.net/p/htmlunit/bugs/ To unsubscribe from further messages, a project admin can change settings at https://sourceforge.net/p/htmlunit/admin/bugs/options. Or, if this is a mailing list, you can unsubscribe from the mailing list. |