Bug 121319 - Web Inspector: DOM content of externally loaded SVG files should be available in the Web Inspector through an iframe-like view.
Summary: Web Inspector: DOM content of externally loaded SVG files should be available...
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: Web Inspector (show other bugs)
Version: 528+ (Nightly build)
Hardware: All All
: P2 Normal
Assignee: Nobody
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2013-09-13 13:30 PDT by James Craig
Modified: 2016-12-13 15:36 PST (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description James Craig 2013-09-13 13:30:44 PDT
Web Inspector: DOM content of externally loaded SVG files should be available in the Web Inspector through an iframe-like view. You can load SVG markup directly in the HTML, or reference an external .svg file from an <img> tag. WebKit has the ability to see both, but the Web Inspector only displays the content of the inline markup.
Comment 1 Radar WebKit Bug Importer 2013-09-13 13:31:21 PDT
<rdar://problem/14988123>
Comment 2 Timothy Hatcher 2013-09-13 13:35:09 PDT
Do you mean DOM or source?
Comment 3 James Craig 2013-09-21 13:19:02 PDT
DOM I guess. For example, The source HTML document referencing an iframe only has the HREF to the frame source, but the Web Inspector displays the DOM of the iframe. I think it should do the same for SVG images, since they also have a DOM that is loaded and displayed by WebKit within the current page's view.
Comment 4 James Craig 2013-09-21 13:21:23 PDT
<rdar://problem/12611265>
Comment 5 James Craig 2016-02-02 00:56:52 PST
In another thread, Joseph Scheuhammer noticed:

> ...the HTML spec for the <img> elements states that it has an empty content model [1], making <img> a leaf node.
> 
> [1]https://www.w3.org/html/wg/drafts/html/master/semantics.html#the-img-element

I believe the HTML spec should be updated to call some images a "nested browsing context" like an iframe, which may allow for an IDL change related to this dev tools enhancement.
Comment 6 Timothy Hatcher 2016-02-04 09:44:59 PST
(In reply to comment #5)
> In another thread, Joseph Scheuhammer noticed:
> 
> > ...the HTML spec for the <img> elements states that it has an empty content model [1], making <img> a leaf node.
> > 
> > [1]https://www.w3.org/html/wg/drafts/html/master/semantics.html#the-img-element
> 
> I believe the HTML spec should be updated to call some images a "nested
> browsing context" like an iframe, which may allow for an IDL change related
> to this dev tools enhancement.

Even if the HTML spec does not change, we could still do this for <img> in the Elements tab.