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: Bjoern Hoehrmann <derhoermi@gmx.net>
Date: Thu, 21 Jun 2012 05:26:55 +0200
To: Jonas Sicking <jonas@sicking.cc>
Cc: WebApps WG <public-webapps@w3.org>
Message-ID: <vf45u71bsgi2er424q00oij60htjq0dvtg@hive.bjoern.hoehrmann.de>
* Jonas Sicking wrote:
>I can't think of any cases where you would *not* want these to fire
>for parser mutations.
>
>For example if you are building an XBL-like widget library which uses
>the DOM under a node to affect behavior or rendering of some other
>object. If you attach the widget before the node is fully parsed you
>still need to know about modifications that happen due to parsing.

And you would typically want to attach "early" to avoid "cannot click
button while page is loading"-style issues in such a scenario. I also
note that making "page load" a special case likely means authors have
to write special code to handle it, and that does not seem desirable.
-- 
Björn Höhrmann · mailto:bjoern@hoehrmann.de · http://bjoern.hoehrmann.de
Am Badedeich 7 · Telefon: +49(0)160/4415681 · http://www.bjoernsworld.de
25899 Dagebüll · PGP Pub. KeyID: 0xA4357E78 · http://www.websitedev.de/ 
Received on Thursday, 21 June 2012 03:27:29 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 18:49:52 GMT