Re: [whatwg] Proposal: Wake Lock API

On Wednesday, August 20, 2014 at 11:14 AM, Anne van Kesteren wrote:

> On Wed, Aug 20, 2014 at 5:09 PM, Marcos Caceres <w3c@marcosc.com (mailto:w3c@marcosc.com)> wrote:
> > And of course Object.observe would work really nicely, but I've been told a bunch of times by various people that we can't use Object.observe on DOM APIs (this *really* sucks).
> 
> 
> 
> Not by default, but we can make it work as I said. We wouldn't do it
> for innerHTML, but we might for <input>.value or some such.
> 
Ok, if we get [Observable] in WebIDL, then the API basically becomes something neat like:

```
partial interface Document {
    [Observable] attribute boolean keepScreenOn;   
} 
```

So nice. 

Received on Wednesday, 20 August 2014 18:55:04 UTC