Bug 34680 - Web Inspector: Fragment-held Elements Not Shown in Inspector
Summary: Web Inspector: Fragment-held Elements Not Shown in Inspector
Alias: None
Product: WebKit
Classification: Unclassified
Component: Web Inspector (Deprecated) (show other bugs)
Version: 528+ (Nightly build)
Hardware: All All
: P2 Normal
Assignee: Pavel Feldman
URL: http://dev.jquery.com/ticket/6045
Depends on:
Reported: 2010-02-06 10:26 PST by John Resig
Modified: 2010-02-07 04:52 PST (History)
8 users (show)

See Also:

[PATCH] The fix. (5.08 KB, patch)
2010-02-06 11:30 PST, Pavel Feldman
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description John Resig 2010-02-06 10:26:29 PST
Elements inside a fragment, inside an array, are not displayed.


var frag = document.createDocumentFragment();
frag.appendChild( document.createElement("p") );

In the web inspector you see:

> frag.firstChild

(nothing is shown)

var a = [ frag.firstChild ];

> a

Even though the array has a length and holds an element.

See also here:
Comment 1 Pavel Feldman 2010-02-06 11:30:44 PST
Created attachment 48290 [details]
[PATCH] The fix.
Comment 2 WebKit Commit Bot 2010-02-07 04:52:27 PST
Comment on attachment 48290 [details]
[PATCH] The fix.

Clearing flags on attachment: 48290

Committed r54470: <http://trac.webkit.org/changeset/54470>
Comment 3 WebKit Commit Bot 2010-02-07 04:52:35 PST
All reviewed patches have been landed.  Closing bug.