Re: [whatwg/dom] Add StaticRange constructor (#778)

> > I wonder if we should make it a bit more friendly. Default startOffset to 0 (this can be done in IDL), default endContainer to startContainer, and default endOffset to endContainer's child nodes length (perhaps only if endContainer is startContainer).
> 
> We can make those changes too but I think this is a good first cut. I'll land the WebKit change anyway since that seems like more of an enhancement.

I tend to agree. Having some default values seems useful, but it might be better to wait and observe some patterns in StaticRange constructor usage before deciding on what those defaults should be.

-- 
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/pull/778#issuecomment-524512540

Received on Saturday, 24 August 2019 03:10:37 UTC