DescriptionSupport non-function object values assigned to EventHandler attributes
In HTML, the type EventHandler, used for event handler IDL attributes,
is defined
[TreatNonObjectAsNull]
callback EventHandlerNonNull = any (Event event);
typedef EventHandlerNonNull? EventHandler;
Aside from treating non-object values as null, the extended attribute
means non-callable object values should be allowed by the attribute's
setter (and returned by its getter) and should be treated as if they
were no-op functions returning undefined.
BUG=475428
Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=193516
Patch Set 1 #Patch Set 2 : drop (now) pointless assert #
Total comments: 2
Messages
Total messages: 10 (3 generated)
|