X
Tap here to go to the mobile version of the site.

Support Forum

Copy content of inspector

Posted

I have saved an html page, I do 'inspect element'. That opens a web developer's interface on tab 'inspector'. What I want to do next is copy all that is in it. Ctrl-A does not select all.

I have saved an html page, I do 'inspect element'. That opens a web developer's interface on tab 'inspector'. What I want to do next is copy all that is in it. Ctrl-A does not select all.
Attached screenshots

Chosen solution

I don't think that you can get the full page source via the developer tools. You can get the source of the head and body tag via the right-click context menu (Copy > Copy Outer HTML), i.e. you can get the source of a selected node.

You can't get the part before the HEAD tag (!DOCUMENT and in your screenshot also some conditional code for IE). You need to open the page source in a tab via the right-click context menu on the web page (View Page Source) to get the full page source. Select All and "View Selection Source" give you the source as generated from the DOM.

Read this answer in context 0
Quote

Additional System Details

Installed Plug-ins

  • Shockwave Flash 32.0 r0

Application

  • User Agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:70.0) Gecko/20100101 Firefox/70.0

More Information

cor-el
  • Top 10 Contributor
  • Moderator
17771 solutions 160723 answers

Chosen Solution

I don't think that you can get the full page source via the developer tools. You can get the source of the head and body tag via the right-click context menu (Copy > Copy Outer HTML), i.e. you can get the source of a selected node.

You can't get the part before the HEAD tag (!DOCUMENT and in your screenshot also some conditional code for IE). You need to open the page source in a tab via the right-click context menu on the web page (View Page Source) to get the full page source. Select All and "View Selection Source" give you the source as generated from the DOM.

I don't think that you can get the full page source via the developer tools. You can get the source of the head and body tag via the right-click context menu (Copy > Copy Outer HTML), i.e. you can get the source of a selected node. You can't get the part before the HEAD tag (!DOCUMENT and in your screenshot also some conditional code for IE). You need to open the page source in a tab via the right-click context menu on the web page (View Page Source) to get the full page source. Select All and "View Selection Source" give you the source as generated from the DOM.

Modified by cor-el

Was this helpful to you? 0
Quote

Question owner

Isn't Ctrl+U the same thing? Regardless, Viewing the page source keeps some elements (emails) protected that are OTOH visible in the inspector.

Wait, actually, no, I do see the 'mailto's that were previously hidden.

Case closed.

Isn't Ctrl+U the same thing? Regardless, Viewing the page source keeps some elements (emails) protected that are OTOH visible in the inspector. Wait, actually, no, I do see the 'mailto's that were previously hidden. Case closed.
Was this helpful to you?
Quote
Seburo
  • Top 10 Contributor
  • Moderator
902 solutions 6708 answers

Hello,

I am glad to hear that your problem has been resolved. If you haven't already, please select the answer that solves the problem. This will help other users with similar problems find the solution.

Thank you for contacting Mozilla Support.

Hello, I am glad to hear that your problem has been resolved. If you haven't already, please select the answer that solves the problem. This will help other users with similar problems find the solution. Thank you for contacting Mozilla Support.
Was this helpful to you?
Quote
cor-el
  • Top 10 Contributor
  • Moderator
17771 solutions 160723 answers

Node that sometime the web page can load extra content via XHR, but I wouldn't expect this on a page you loaded locally.

Node that sometime the web page can load extra content via XHR, but I wouldn't expect this on a page you loaded locally.
Was this helpful to you?
Quote
Ask a question

You must log in to your account to reply to posts. Please start a new question, if you do not have an account yet.