On Tue, Mar 25, 2014 at 5:08 AM, Dirk Schulze <[email protected]> wrote:
> Hi Anne, > On Mar 25, 2014, at 11:29 AM, Anne van Kesteren <[email protected]> wrote: > > > On Tue, Mar 25, 2014 at 3:53 AM, Rik Cabanier <[email protected]> > wrote: > >> It's defined as the "Path" object in the WhatWG spec [1] but after a > long > >> discussion and author feedback that name was considered too generic and > >> renamed. > > > > Pointer? Almost none of the other <canvas>-related interfaces have a > > suffix. Also, if there was agreement, why isn't the specification > > updated? > > The main concern for most discussion participants was a name collision > with JS libraries that introduce "Path" in the global space. In fact that > happened for many authors with Paper.js. Just to name one example. > > The discussion about the name collision was brought up by Elliot Sprehn in > September 2012[1]. > > Other threads started about the same topic and eventually most > implementers agreed on Path2d in November 2013[2]. > > I can not say why the spec did not adapt to Path2d yet. It certainly was > requested multiple times. Maybe Ian wanted to wait for two interoperable > implementations to change. Now we have WebKit, Blink and Gecke (the latter > two behind a runtime flag) that implement Path2d with the described subset > from Rik. > >From Ian on the thread for Path2D on blink-dev: There wasn't a decision, it's just awaiting implementations. Right now there's one shipping implementation, and it's called the interface Path, so that's why the spec is still saying Path. It's not a compliant implementation, so it's not a strong vote, but it's the only vote so far. This is being tracked here: https://www.w3.org/Bugs/Public/show_bug.cgi?id=23918 If an implementation ships a compliant implementation of the API with the name Path2D, then it would move the balance over and the spec would change. The one shipping implementation was Safari and it was implemented last year by Dirk. He renamed it last week to Path2D. > [1] > http://lists.w3.org/Archives/Public/public-whatwg-archive/2012Sep/0288.html > [2] > http://lists.w3.org/Archives/Public/public-whatwg-archive/2013Nov/0204.html > > > > > > > > -- > > http://annevankesteren.nl/ > > _______________________________________________ dev-platform mailing list [email protected] https://lists.mozilla.org/listinfo/dev-platform

