Bug 147335 - Web Inspector: Include <template> node content in DOM Tree
Summary: Web Inspector: Include <template> node content in DOM Tree
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Web Inspector (show other bugs)
Version: 528+ (Nightly build)
Hardware: All All
: P2 Normal
Assignee: Joseph Pecoraro
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2015-07-27 14:57 PDT by Joseph Pecoraro
Modified: 2015-07-28 13:56 PDT (History)
9 users (show)

See Also:


Attachments
[PATCH] Proposed Fix (6.96 KB, patch)
2015-07-27 15:03 PDT, Joseph Pecoraro
no flags Details | Formatted Diff | Diff
[PATCH] For Landing (7.04 KB, patch)
2015-07-28 13:54 PDT, Joseph Pecoraro
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Joseph Pecoraro 2015-07-27 14:57:05 PDT
* SUMMARY
Include <template> node content in DOM Tree.

* TEST
<body>
    <template>
        <h1>Header</h1>
        <p>Paragraph</p>
    </template>
</body>


* STEPS TO REPRODUCE
1. Inspect test page
  => Should be able to expand the <template> element in DOM Tree and see its contents.

* NOTES
- Backend already sends the frontend "DOMNode.templateContent" information, the frontend does nothing with it.
Comment 1 Radar WebKit Bug Importer 2015-07-27 14:57:17 PDT
<rdar://problem/22018682>
Comment 2 Joseph Pecoraro 2015-07-27 15:03:10 PDT
Created attachment 257596 [details]
[PATCH] Proposed Fix

Won't apply yet, requires the Pseudo Element patch's refactoring.
Comment 3 Timothy Hatcher 2015-07-27 16:29:29 PDT
Comment on attachment 257596 [details]
[PATCH] Proposed Fix

View in context: https://bugs.webkit.org/attachment.cgi?id=257596&action=review

> Source/WebInspectorUI/UserInterface/Models/DOMNode.js:269
> +    templateContent()

Getter?
Comment 4 Joseph Pecoraro 2015-07-27 17:14:55 PDT
(In reply to comment #3)
> Comment on attachment 257596 [details]
> [PATCH] Proposed Fix
> 
> View in context:
> https://bugs.webkit.org/attachment.cgi?id=257596&action=review
> 
> > Source/WebInspectorUI/UserInterface/Models/DOMNode.js:269
> > +    templateContent()
> 
> Getter?

All of these DOMNode methods are methods and can be getters. I want to refactor the style quite a bit, but for this patch at least I wanted to follow the pattern.
Comment 5 WebKit Commit Bot 2015-07-28 13:38:44 PDT
Comment on attachment 257596 [details]
[PATCH] Proposed Fix

Clearing flags on attachment: 257596

Committed r187507: <http://trac.webkit.org/changeset/187507>
Comment 6 WebKit Commit Bot 2015-07-28 13:38:47 PDT
All reviewed patches have been landed.  Closing bug.
Comment 7 Joseph Pecoraro 2015-07-28 13:54:09 PDT
Created attachment 257679 [details]
[PATCH] For Landing