W3C home > Mailing lists > Public > public-media-capture@w3.org > June 2014

Re: clarification on the "_readonly" attribute of MediaStreamTrack

From: Martin Thomson <martin.thomson@gmail.com>
Date: Tue, 10 Jun 2014 17:12:56 -0700
Message-ID: <CABkgnnVyn_DcA07+1dHYLCWSkWMmL2gQRAKLnRWrsD2vX0AU1Q@mail.gmail.com>
To: Shijun Sun <shijuns@microsoft.com>
Cc: "public-media-capture@w3.org" <public-media-capture@w3.org>
On 10 June 2014 17:06, Shijun Sun <shijuns@microsoft.com> wrote:
> MediaStreamTrack has an attribute in its interface definition called _readonly (including the underscore).  The description refers to it as simply readonly.  Can we get a clarification whether the intent is for script to access this with or w/o the underscore?  Also, should this be in camelCase, e.g. readOnly?

I had this explained as being quite simply a workaround for the fact
that readonly is a reserved word in WebIDL.  Apparently, the
underscore is removed.
Received on Wednesday, 11 June 2014 00:13:23 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:24:48 UTC