Bug 158654 - Web Inspector: <template> content should not be hidden as Shadow Content
Summary: Web Inspector: <template> content should not be hidden as Shadow Content
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Web Inspector (show other bugs)
Version: WebKit Nightly Build
Hardware: All All
: P2 Normal
Assignee: Joseph Pecoraro
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2016-06-10 21:57 PDT by Joseph Pecoraro
Modified: 2016-06-10 22:31 PDT (History)
8 users (show)

See Also:


Attachments
[PATCH] Proposed Fix (3.56 KB, patch)
2016-06-10 21:59 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 2016-06-10 21:57:54 PDT
Summary:
<template> content should not be hidden as Shadow Content, it should show like a document fragment.

Steps To Reproduce:
1. Inspect about:blank
2. js> t = document.createElement("template"); t.innerHTML = "hello world"; document.body.appendChild(t); t
  => Expanding <template> in console should not be say "Shadow Root" it should be a Document Fragment
  => Same in the DOM Tree

Notes:
- While this is a Document Fragment, lets customize the string in the UI to say "Template Content" instead of "Document Fragment".
Comment 1 Radar WebKit Bug Importer 2016-06-10 21:58:17 PDT
<rdar://problem/26753415>
Comment 2 Joseph Pecoraro 2016-06-10 21:59:02 PDT
Created attachment 281076 [details]
[PATCH] Proposed Fix
Comment 3 WebKit Commit Bot 2016-06-10 22:31:12 PDT
Comment on attachment 281076 [details]
[PATCH] Proposed Fix

Clearing flags on attachment: 281076

Committed r201965: <http://trac.webkit.org/changeset/201965>
Comment 4 WebKit Commit Bot 2016-06-10 22:31:16 PDT
All reviewed patches have been landed.  Closing bug.