Side navigation
#13282 closed bug (fixed)
Opened January 21, 2013 09:39AM UTC
Closed January 25, 2013 01:59PM UTC
Last modified March 06, 2013 04:01PM UTC
QtWebKit -- TypeError: '[object Object]' is not a valid argument for 'Function.prototype.apply' (evaluating 'elem.nodeType')
| Reported by: | Jason@zx2c4.com | Owned by: | gibson042 |
|---|---|---|---|
| Priority: | low | Milestone: | 2.0 |
| Component: | manipulation | Version: | 2.0b1 |
| Keywords: | Cc: | rwaldron, Jason@zx2c4.com | |
| Blocked by: | Blocking: |
Description
This error occurs on all QtWebKit-based browsers.
for ( ; i < l; i++ ) {
elem = elems[ i ];
if ( elem || elem === 0 ) {
// Add nodes directly
if ( jQuery.type( elem ) === "object" ) {
core_push.apply( nodes, elem.nodeType ? [ elem ] : elem );
---> TypeError: '[object Object]' is not a valid argument for 'Function.prototype.apply' (evaluating 'elem.nodeType') <----
// Convert non-html into a text node
} else if ( !rhtml.test( elem ) ) {
nodes.push( context.createTextNode( elem ) );
// Convert html into DOM nodes
} else {
tmp = tmp || fragment.appendChild( context.createElement("div") );
Attachments (0)
Change History (7)
Changed January 21, 2013 05:28PM UTC by comment:1
| cc: | → rwaldron |
|---|---|
| owner: | → gibson042 |
| status: | new → assigned |
Changed January 25, 2013 01:59PM UTC by comment:2
| cc: | rwaldron → rwaldron, Jason@zx2c4.com |
|---|---|
| component: | unfiled → manipulation |
| milestone: | None → 1.9.1 |
| priority: | undecided → low |
| resolution: | → fixed |
| status: | assigned → closed |
Fixed: https://github.com/jquery/jquery/commit/fb0f2952929fbe0e8a39da8c7865a397c7e74835
Reporter, can you confirm that http://code.jquery.com/jquery-git2.js resolves the issue?
Changed January 25, 2013 04:13PM UTC by comment:3
Works great. Thanks for looking into it.
Changed January 28, 2013 10:39AM UTC by comment:4
Make sure to file a ticket on QtWebKit if there doesn't already exist one for this issue and add a link here.
Changed February 08, 2013 04:29PM UTC by comment:5
| milestone: | 1.9.1 → 2.0 |
|---|
Changed February 08, 2013 05:13PM UTC by comment:6
Reported at https://bugs.webkit.org/show_bug.cgi?id=109307
Per discussion in #jquery-meeting, we're going to back out the
core_push.apply( <Array>, <NodeList> )calls in favor of the olderjQuery.merge( <Array>, <NodeList> ), reverting much of https://github.com/jquery/jquery/commit/dc93f8cbb59d230d707193118124689c6fd930ff et al.