<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Add &amp;quot;Copy DOM Tree as Displayed&amp;quot; to Firefox DevTools Inspector in Discussions</title>
    <link>https://connect.mozilla.org/t5/discussions/add-quot-copy-dom-tree-as-displayed-quot-to-firefox-devtools/m-p/135028#M54372</link>
    <description>&lt;P&gt;Firefox DevTools visually displays DOM structures that are not represented in the output of "Copy HTML" or "Copy Inner HTML".&lt;BR /&gt;&lt;BR /&gt;Copying the HTML from Firefox removed that information and required manual editing before it could be shared with others or AI for assistance.&lt;/P&gt;&lt;DIV&gt;&lt;P&gt;Examples include:&lt;BR /&gt;&amp;lt;div id="desktop-dynamic-upsell-dialog"&amp;gt;&lt;BR /&gt;&amp;nbsp; #shadow-root (open)&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;lt;div class="dialog-overlay"&amp;gt;&amp;lt;/div&amp;gt;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;lt;div class="dialog-panel"&amp;gt;&amp;lt;/div&amp;gt;&lt;BR /&gt;&amp;lt;/div&amp;gt;&lt;/P&gt;&lt;P&gt;(by the way using the code block function was blocked when inserting the above example)&lt;BR /&gt;When copying the element, the copied text does not include the #shadow-root (open) node or its contents.&lt;/P&gt;&lt;P&gt;This makes it difficult to:&lt;/P&gt;&lt;P&gt;Share page structure in forums&lt;BR /&gt;Report website issues&lt;BR /&gt;Ask AI assistants for help&lt;BR /&gt;Create bug reports&lt;BR /&gt;Discuss Shadow DOM implementations&lt;BR /&gt;Suggested Solution&lt;/P&gt;&lt;P&gt;Add a new inspector context-menu option:&lt;BR /&gt;Copy as Displayed or&amp;nbsp;Copy Inspector Tree or something similiar&lt;BR /&gt;which copies the DOM tree exactly as shown in DevTools.&lt;/P&gt;&lt;P&gt;&amp;nbsp;Optionally include:&lt;/P&gt;&lt;DIV&gt;&lt;SPAN&gt;&lt;SPAN&gt;#shadow-root (closed)&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;DIV&gt;&lt;SPAN&gt;&lt;SPAN&gt;::before&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;DIV&gt;&lt;SPAN&gt;&lt;SPAN&gt;&lt;SPAN&gt;::after&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;DIV&gt;and other DevTools-visible structures.&lt;BR /&gt;&lt;BR /&gt;I did write the suggestion with help of AI to be clear&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/DIV&gt;</description>
    <pubDate>Tue, 18 Aug 2026 13:43:54 GMT</pubDate>
    <dc:creator>Kkloe_</dc:creator>
    <dc:date>2026-08-18T13:43:54Z</dc:date>
    <item>
      <title>Add "Copy DOM Tree as Displayed" to Firefox DevTools Inspector</title>
      <link>https://connect.mozilla.org/t5/discussions/add-quot-copy-dom-tree-as-displayed-quot-to-firefox-devtools/m-p/135028#M54372</link>
      <description>&lt;P&gt;Firefox DevTools visually displays DOM structures that are not represented in the output of "Copy HTML" or "Copy Inner HTML".&lt;BR /&gt;&lt;BR /&gt;Copying the HTML from Firefox removed that information and required manual editing before it could be shared with others or AI for assistance.&lt;/P&gt;&lt;DIV&gt;&lt;P&gt;Examples include:&lt;BR /&gt;&amp;lt;div id="desktop-dynamic-upsell-dialog"&amp;gt;&lt;BR /&gt;&amp;nbsp; #shadow-root (open)&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;lt;div class="dialog-overlay"&amp;gt;&amp;lt;/div&amp;gt;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;lt;div class="dialog-panel"&amp;gt;&amp;lt;/div&amp;gt;&lt;BR /&gt;&amp;lt;/div&amp;gt;&lt;/P&gt;&lt;P&gt;(by the way using the code block function was blocked when inserting the above example)&lt;BR /&gt;When copying the element, the copied text does not include the #shadow-root (open) node or its contents.&lt;/P&gt;&lt;P&gt;This makes it difficult to:&lt;/P&gt;&lt;P&gt;Share page structure in forums&lt;BR /&gt;Report website issues&lt;BR /&gt;Ask AI assistants for help&lt;BR /&gt;Create bug reports&lt;BR /&gt;Discuss Shadow DOM implementations&lt;BR /&gt;Suggested Solution&lt;/P&gt;&lt;P&gt;Add a new inspector context-menu option:&lt;BR /&gt;Copy as Displayed or&amp;nbsp;Copy Inspector Tree or something similiar&lt;BR /&gt;which copies the DOM tree exactly as shown in DevTools.&lt;/P&gt;&lt;P&gt;&amp;nbsp;Optionally include:&lt;/P&gt;&lt;DIV&gt;&lt;SPAN&gt;&lt;SPAN&gt;#shadow-root (closed)&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;DIV&gt;&lt;SPAN&gt;&lt;SPAN&gt;::before&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;DIV&gt;&lt;SPAN&gt;&lt;SPAN&gt;&lt;SPAN&gt;::after&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;DIV&gt;and other DevTools-visible structures.&lt;BR /&gt;&lt;BR /&gt;I did write the suggestion with help of AI to be clear&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 18 Aug 2026 13:43:54 GMT</pubDate>
      <guid>https://connect.mozilla.org/t5/discussions/add-quot-copy-dom-tree-as-displayed-quot-to-firefox-devtools/m-p/135028#M54372</guid>
      <dc:creator>Kkloe_</dc:creator>
      <dc:date>2026-08-18T13:43:54Z</dc:date>
    </item>
  </channel>
</rss>

