[webkit-dev] Multiple inheritance in the DOM
Andrei Bucur
abucur at adobe.com
Thu Jul 26 15:35:05 PDT 2012
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-bounces at lists.webkit.org [mailto:webkit-dev-bounces at 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 at 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-dev/attachments/20120726/3917d695/attachment.html>
More information about the webkit-dev
mailing list