From jn.ml.fdr.287 at wingsandbeaks.org.uk Wed Sep 2 22:38:09 2020 Content-Type: multipart/mixed; boundary="===============7972593988046222120==" MIME-Version: 1.0 From: Jeremy Nicoll - ml fedora To: users at lists.fedoraproject.org Subject: Re: javascript/firefox -- really off topic issue/question Date: Wed, 02 Sep 2020 23:37:53 +0100 Message-ID: In-Reply-To: ffc3fb222d3d5f4c4186f20468f3ef1a@wingsandbeaks.org.uk --===============7972593988046222120== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable On 2020-09-02 23:23, Jeremy Nicoll - ml fedora wrote: > On 2020-09-02 17:12, bruce wrote: >> Hi Jeremy. >> = >> Doing a "view source" only shows the static source. To get the dynamic >> gnerated content from the avascript you need to dive into the >> Developers Tools/Inspector tab. > = > Might not the problem be that what you're hoping to see is html > corresponding to the DOM that's been altered by dynamic JS? But > does that actually exist, other than in the browser's internal > data/control structures? > = > That is, I expect the browser reads the original html, parses it, > builds a data structure that represents the DOM, then possibly > modifies that (once or many times) via JS. It'd then render the > page by working from the internal data structure, not any part > of the character-based html. > = > Do you see what I mean? Ah, forget that. I found from a test page here that right-clicking the "" at the very top of the html tree structure at the bottom left of the tools window then using Copy - Inner HTML or Copy - Outer HTML allowed me to paste the whole of the dynamic html into another file. If instead of choosing "" I chose eg "" (or presumably another smaller part of the tree, then I got just its corresponding smaller amount of html. For example in a test page here whose original source has a series of test paragraphs starting with just

Body text 1 enclosed by p-tags.

some JS colours that. Clicking on the leading "

" then choosing the Copy - Inner HTML option, on the tools page when it's showing the coloured results, gives me Body text 1 enclosed by p-tags. but Copy - Outer HTML gives

Body text 1 enclosed by p-tags.

-- = Jeremy Nicoll - my opinions are my own --===============7972593988046222120==--