לאתר זה תהיה פונקציונליות מוגבלת בזמן שאנו מתחזקים אותו לשיפור החוויה שלך. אם מאמר מסויים לא פותר את הבעיה שלך וברצונך לשאול שאלה, קהילת התמיכה שלנו מחכה לעזור לך ב־Twitter תחת ‎@FirefoxSupport וב־Reddit תחת ‎/r/firefox.

חיפוש בתמיכה

יש להימנע מהונאות תמיכה. לעולם לא נבקש ממך להתקשר או לשלוח הודעת טקסט למספר טלפון או לשתף מידע אישי. נא לדווח על כל פעילות חשודה באמצעות באפשרות ״דיווח על שימוש לרעה״.

מידע נוסף

Copy content of inspector

  • 4 תגובות
  • 1 has this problem
  • 1 view
  • תגובה אחרונה מאת cor-el

more options

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.
צילומי מסך מצורפים

פתרון נבחר

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

כל התגובות (4)

more options

פתרון נבחר

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.

השתנתה ב־ על־ידי cor-el

more options

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.

more options

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.

more options

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