Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(799)

Unified Diff: Source/core/events/MutationEvent.idl

Issue 1149963004: Sync various event interfaces with their specs (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: spec URL update Created 5 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/core/events/EventListener.idl ('k') | Source/core/events/NavigatorEvents.idl » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/events/MutationEvent.idl
diff --git a/Source/core/events/MutationEvent.idl b/Source/core/events/MutationEvent.idl
index 0aae4e31df94247d75cf26a374294aae883f39cc..9fde40fd2d5b41b08805b8664b07483a543e3c55 100644
--- a/Source/core/events/MutationEvent.idl
+++ b/Source/core/events/MutationEvent.idl
@@ -17,28 +17,26 @@
* Boston, MA 02110-1301, USA.
*/
-// Introduced in DOM Level 2:
-interface MutationEvent : Event {
+// https://w3c.github.io/uievents/#interface-MutationEvent
+interface MutationEvent : Event {
// attrChangeType
const unsigned short MODIFICATION = 1;
const unsigned short ADDITION = 2;
const unsigned short REMOVAL = 3;
- readonly attribute Node relatedNode;
+ readonly attribute Node? relatedNode;
readonly attribute DOMString prevValue;
readonly attribute DOMString newValue;
readonly attribute DOMString attrName;
readonly attribute unsigned short attrChange;
-
- void initMutationEvent([Default=Undefined] optional DOMString type,
- [Default=Undefined] optional boolean canBubble,
+ // TODO(philipj): None of the initMutationEvent() arguments should be optional.
+ void initMutationEvent([Default=Undefined] optional DOMString type,
+ [Default=Undefined] optional boolean bubbles,
[Default=Undefined] optional boolean cancelable,
[Default=Undefined] optional Node relatedNode,
[Default=Undefined] optional DOMString prevValue,
[Default=Undefined] optional DOMString newValue,
[Default=Undefined] optional DOMString attrName,
[Default=Undefined] optional unsigned short attrChange);
-
};
-
« no previous file with comments | « Source/core/events/EventListener.idl ('k') | Source/core/events/NavigatorEvents.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698