New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
QtWebKit: jQuery thinks that DOM elements collection is a function #4756
Labels
Milestone
Comments
natipo
added a commit
to natipo/jquery
that referenced
this issue
Jul 21, 2020
Fix allows jQuery to recognize that DOM types such as HTMLCollection or NodeList are not functions. Fixes jquerygh-4756
4 tasks
Thanks for the report. We don't support QtWebKit but I'm not opposed to a simple patch just for the For reference, the commit that caused this issue is a16339b. See the linked issues for an explanation about the change. |
natipo
added a commit
to natipo/jquery
that referenced
this issue
Jul 22, 2020
Fix allows jQuery to recognize that DOM types such as HTMLCollection or NodeList are not functions. Code review changes: - use toString from jQuery instead of native - add support comment mentioning affected environments & their versions Fixes jquerygh-4756
natipo
added a commit
to natipo/jquery
that referenced
this issue
Jul 22, 2020
Fix allows jQuery to recognize that DOM types such as HTMLCollection or NodeList are not functions. Code review changes: - use toString from jQuery instead of native - improve support comment Fixes jquerygh-4756
natipo
added a commit
to natipo/jquery
that referenced
this issue
Jul 22, 2020
Fix allows jQuery to recognize that DOM types such as HTMLCollection or NodeList are not functions. Code review changes: - fix toString dependency definition Fixes jquerygh-4756
Fixed by #4757. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Description
After upgrade from jQuery 3.2.1 to 3.3.0 wkhtmltopdf tool stopped working due to the following error in jQuery:
Browser to reproduce: QtWeb 3.8.5 (http://www.qtweb.net/)
The actual problem is inside
isFunction( obj )
. The current fix for web browsers where DOM nodes are being classified as a function is not enough for QtWebKit because types such asNodeList
orHTMLCollection
don't have attributenodeType
and thetypeof
command returnsfunction
.Output using QtWeb JavaScript console:
Many systems depend on this wkhtmltopdf tool in terms of converting HTML page to PDF. Since jQuery 4 is about to drop support for old browsers, I would like to bring back support for QtWebKit 4 in jQuery 3.x so I could upgrade the system to the latest and secure version of jQuery 3.x.
Link to test case
Tools -> Enable Web Inspector
in order to see error details.The text was updated successfully, but these errors were encountered: