Re: [whatwg/dom] TreeWalker constructor (#818)

> I expected developers to not use these classes.

Perhaps it’s less common than I thought. I’ve used it fairly often over the years — being able to skip subtrees with the filter can be pretty useful — but it’s true that there are lots of alternatives. Any particular reasons you’d expect it not to be used much anymore?

In general I think it would be less surprising if `foo.createBar` ops that produce instances of `Bar` but don’t actually make use of `foo` all had ordinary constructor ops on Bar, but I’d agree TreeWalker probably isn’t a high priority item.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/dom/issues/818#issuecomment-573242877

Received on Friday, 10 January 2020 23:17:20 UTC