Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

3
  • Does this answer your question? stackoverflow.com/a/2184944/3417978
    – MC10
    Commented Dec 13, 2022 at 3:22
  • I already saw that answer in my investigation... but I thought that as that is nearly 13 years old, maybe things improved. I'll edit my question to clarify... thanks. Commented Dec 13, 2022 at 9:36
  • 1
    You're editing the DOM, not the HTML. And even before editing, the DOM may be different than downloaded HTML because it may have been edited by JavaScript. Not to mention that eg. original HTML may not be exactly spec-conformant and DOM will have that "corrected", possibly losing some information.
    – gronostaj
    Commented Dec 13, 2022 at 10:00