Identifying what the Region actually is sounds very similar with identifying 
the nature of a Node using NodeType? Is this pattern applicable here as well?

https://developer.mozilla.org/en/nodeType

Andrei.

From: webkit-dev-boun...@lists.webkit.org 
[mailto:webkit-dev-boun...@lists.webkit.org] On Behalf Of Adam Barth
Sent: Friday, July 27, 2012 1:15 AM
To: Alan Stearns
Cc: Kentaro Hara; Elliott Sprehn; webkit-dev@lists.webkit.org; Sam Weinig
Subject: Re: [webkit-dev] Multiple inheritance in the DOM

For Alex's suggestion above, would there be any problems with a parameter
(for the first method) and return type (for the second) that could be an
Element or something else? Adding two helper methods seems messier to me
than what's currently specced, but I'm open to the idea if it's much
easier to implement.

It depends on how many things will implement Region.  If there are N things, 
you'll need to add N properties and you're essentially asking web developers to 
call QueryInterface on the object to see what sort of Region it really is.

Adam

_______________________________________________
webkit-dev mailing list
webkit-dev@lists.webkit.org
http://lists.webkit.org/mailman/listinfo/webkit-dev

Reply via email to