The documentation for html2.WebView has many error, principaly in minimum version support.
Examples : https://docs.wxpython.org/wx.html2.WebView.html#wx.html2.WebView.RunScriptAsync
It write “New in version 4.1/wxWidgets-3.1.6.”, but it’s false. Tested on 4.1.1, the method NOT exists.
But, update to 4.2.2, magie! this method exists.
Same for “EVT_WEBVIEW_SCRIPT_RESULT”, don’t exists in 4.1.1 but exists 4.2.2.
Yes, unfortunately, the documentation is auto-generated from the wxWidgets interface headers and makes a guess between mapping wxWidgets version numbers to wxPython version numbers. Sometimes, it is not quite right. The case of wxPython 4.1 releases, this was expecially true because these releases were based on wxWidgets 3.1.x, which could have new functionality added in each release.
With respect to your statement “Note: This page has so many typing error.” do you mean the same issue about the wrong version number, or something else?