W3C home > Mailing lists > Public > public-webapps@w3.org > April to June 2012

Re: Should MutationObservers be able to observe work done by the HTML parser?

From: Olli Pettay <Olli.Pettay@helsinki.fi>
Date: Thu, 21 Jun 2012 11:06:49 +0300
Message-ID: <4FE2D619.2090500@helsinki.fi>
To: Ryosuke Niwa <rniwa@webkit.org>
CC: Adam Klein <adamk@chromium.org>, Jonas Sicking <jonas@sicking.cc>, Rafael Weinstein <rafaelw@google.com>, Mihai Parparita <mihaip@chromium.org>, WebApps WG <public-webapps@w3.org>
On 06/20/2012 10:36 AM, Ryosuke Niwa wrote:
> On Tue, Jun 19, 2012 at 1:52 PM, Olli Pettay <Olli.Pettay@helsinki.fi <mailto:Olli.Pettay@helsinki.fi>> wrote:
>       Ojan points out
>         that simply using end-of-task could expose low-level implementation detail of the parser to script (such as how much parsing is done in a
>         single task
>         before the parser yields).
>         Does Firefox do anything special here? Or does it simply use the same end-of-task delivery as everywhere else?
>     end-of-microtask or end-of-task everywhere. And yes, some parsing / networking details may unfortunately be exposed, but in a way which should be
>     quite random. Web devs just can't really rely on network packages to be delivered to parser in some exact way.
> That randomness seems undesirable. Can we delay the delivery until DOMContentLoaded is fired so that we can have more consisnte behavior here?

Well, the randomness is about the same randomness which is exposed to web pages already.
   <img src="http://www.example.org/nonexisting.png" onerror="console.log('img')">

the order of 'img' and 'script' in the console is random.


> - Ryosuke
Received on Thursday, 21 June 2012 08:07:30 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 18:13:34 UTC