Re: javascript/firefox -- really off topic issue/question

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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 "<html>" 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 "<html>" I chose eg "<head>" (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

 <p>
 Body text 1 enclosed by p-tags.
 </p>

some JS colours that.  Clicking on the leading "<p>" 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

 <p style="background-color: red;">
 Body text 1 enclosed by p-tags.
 </p>



--
Jeremy Nicoll - my opinions are my own
_______________________________________________
users mailing list -- users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to users-leave@xxxxxxxxxxxxxxxxxxxxxxx
Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/users@xxxxxxxxxxxxxxxxxxxxxxx



[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux