Web Inspector: DOM content of externally loaded SVG files should be available in the Web Inspector through an iframe-like view.
https://bugs.webkit.org/show_bug.cgi?id=121319
Summary Web Inspector: DOM content of externally loaded SVG files should be available...
James Craig
Reported 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.
Attachments
Radar WebKit Bug Importer
Comment 1 2013-09-13 13:31:21 PDT
Timothy Hatcher
Comment 2 2013-09-13 13:35:09 PDT
Do you mean DOM or source?
James Craig
Comment 3 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.
James Craig
Comment 4 2013-09-21 13:21:23 PDT
James Craig
Comment 5 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.
Timothy Hatcher
Comment 6 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.
Note You need to log in before you can comment on or make changes to this bug.