Re: Optionally include root element with getElementsByTagName and querySelectorAll

On Mon, Aug 26, 2013 at 1:08 AM, Peter Sloetjes <pjs.nl@live.com> wrote:
> Example of a use case:
> A generalized cloneNode function that clones a document subtree and then
> clones the content of any contained canvas elements, including that of the
> root in case it is a canvas element.

You can just run .matches() on the element you run the queries on
(whenever we define and implement that fully). I don't think we should
add special semantics just for this scenario.


-- 
http://annevankesteren.nl/

Received on Monday, 26 August 2013 09:29:31 UTC