Re: How do I get HTML sent to server?
- From: VK <schools_ring@xxxxxxxxx>
- Date: Mon, 16 Jun 2008 11:29:55 -0700 (PDT)
On Jun 16, 9:57 pm, VK <schools_r...@xxxxxxxxx> wrote:
The problem is that the browser - any browser - does _not_ have access
to the HTML source used to render the current page. Yes, sounds crazy.
Yes, anyone can click View > Page Source or equivalent to see the
source: anyone can but browser cannot. What browser can "see" is the
DOM Tree resulted from the parsing algorithms and error correction
mechanics of this particular browser applied to the server HTML
source. Respectively by getting document.documentElement.innerHTML
(the whole page) or document.body.innerHTML (body only) you are not
getting the original source. Instead the browser is "reverse
engineering" for you the current DOM Tree into some HTML code which
is, being reused by this particular browser, should result to a copy
of the current DOM Tree which is by itself is a browser-specific
result of parsing the original HTML source.
This is why btw the infamous Gecko's "phantom nodes" bug #26179
https://bugzilla.mozilla.org/show_bug.cgi?id=26179
remains a sample of unjustified silliness and stubbornness: because it
fights for a careful preservation of sorry leftovers of something that
doesn't exist in the browser's runtime nor accessible from within the
browser.
Someone just wanted to save its time on parse-adding extra spaces in
text/plain paragraphs like
<p>Lorem ipsum
dolor sit amet</p>
and to justify its laziness he brought W3C, traditions, standards and
nearly the Lord himself as a witness to prove himself right. :-\ :-)
An old story but still upsetting and still seriously influencing to
many coding paradigms...
.
- References:
- How do I get HTML sent to server?
- From: MC
- Re: How do I get HTML sent to server?
- From: SAM
- Re: How do I get HTML sent to server?
- From: MC
- Re: How do I get HTML sent to server?
- From: Jonas Raoni
- Re: How do I get HTML sent to server?
- From: MC
- Re: How do I get HTML sent to server?
- From: Evertjan.
- Re: How do I get HTML sent to server?
- From: SAM
- Re: How do I get HTML sent to server?
- From: Evertjan.
- Re: How do I get HTML sent to server?
- From: MC
- Re: How do I get HTML sent to server?
- From: Evertjan.
- Re: How do I get HTML sent to server?
- From: MC
- Re: How do I get HTML sent to server?
- From: VK
- How do I get HTML sent to server?
- Prev by Date: Re: How do I get HTML sent to server?
- Next by Date: Re: Terms for method types?
- Previous by thread: Re: How do I get HTML sent to server?
- Next by thread: Re: How do I get HTML sent to server?
- Index(es):
Relevant Pages
|