This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 23705 - MutationObserver observe option validation does not match implementations
Summary: MutationObserver observe option validation does not match implementations
Status: RESOLVED WONTFIX
Alias: None
Product: WebAppsWG
Classification: Unclassified
Component: DOM (show other bugs)
Version: unspecified
Hardware: All All
: P2 normal
Target Milestone: ---
Assignee: Anne
QA Contact: public-webapps-bugzilla
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-11-01 16:23 UTC by Erik Arvidsson
Modified: 2013-11-01 17:43 UTC (History)
4 users (show)

See Also:


Attachments

Description Erik Arvidsson 2013-11-01 16:23:49 UTC
http://dom.spec.whatwg.org/#dom-mutationobserver-observe

Given:

  observe(node, {attributeOldValue: true})

now in step 1 `attributes` gets set to true, therefore making 3 no longer throw. This does not match WebKit/Blink, Gecko nor IE.

Removing step 1 and 2 seems to match implementations better.
Comment 1 Anne 2013-11-01 16:41:00 UTC
Do you disagree with bug 23189?
Comment 2 Erik Arvidsson 2013-11-01 17:02:12 UTC
I did not know the spec intentionally did this to allow skipping setting attributes and characterData when dependent options are present.

Seems like a good goal but with 4 browsers requiring attributes to be present and true I'm not sure it is worth it.
Comment 3 Anne 2013-11-01 17:08:37 UTC
The benefit would be long term. And relatively short term if you only care about Chrome and Firefox... Seems we always talk about developer ergonomics and this is a rather cheap change to get there.
Comment 4 Erik Arvidsson 2013-11-01 17:41:48 UTC
Agreed.