Re: [svgwg] Shouldn't getCharNumAtPosition take an argument of type DOMPointReadOnly rather than DOMPoint

> What should SVGPointList look like?

Good question. None of the "XXXList" methods actually modify the contents of the objects in the list, so the content objects can be read only, even when the list is modifiable. All the methods in [the `SVGPointList` interface](https://svgwg.org/svg2-draft/single-page.html#shapes-InterfaceSVGPointList) should probably accept the read-only versions.

That said, there's text in there about how a point list can be read-only even if the individual point objects are read-write, so I'm not sure whether there was a clear compatibility reason for that decision.  Maybe @dirkschulze knows?

-- 
GitHub Notification of comment by AmeliaBR
Please view or discuss this issue at https://github.com/w3c/svgwg/issues/389#issuecomment-370177173 using your GitHub account

Received on Saturday, 3 March 2018 20:25:30 UTC