[css-pseudo] CSSPseudoElement and EventTarget

https://drafts.csswg.org/css-pseudo-4/#csspseudoelement

[[
interface CSSPseudoElement {
     readonly attribute DOMString type;
     readonly attribute CSSStyleDeclaration style;
};

CSSPseudoElement implements EventTarget;
]]

Typically things that are event targets inherit from EventTarget (e.g.  
Node, Window, EventSource, WebSocket...). Unless there was a deliberate  
reason to not do so here, I propose CSSPseudoElement should inherit from  
EventTarget also instead of using "implements", if it's supposed to be an  
event target:

interface CSSPseudoElement : EventTarget {
     readonly attribute DOMString type;
     readonly attribute CSSStyleDeclaration style;
};

-- 
Simon Pieters
Opera Software

Received on Tuesday, 16 February 2016 13:06:27 UTC