W3C home > Mailing lists > Public > whatwg@whatwg.org > October 2007

[whatwg] When to stop <video> elements from playing

From: Anne van Kesteren <annevk@opera.com>
Date: Fri, 19 Oct 2007 14:19:25 +0200
Message-ID: <op.t0f1unsk64w2qv@annevk-t60.oslo.opera.com>
On Fri, 19 Oct 2007 12:02:24 +0200, timeless <timeless at gmail.com> wrote:
> On 10/19/07, Anne van Kesteren <annevk at opera.com> wrote:
>> For that you need something in the browser UI. There's a large, maybe
>> infinite, number of ways to make <audio> not visible even if it's within
>> the DOM tree. For instance:
>>
>>    audio { position:absolute; left:-1000px }
>
> I can easily have a bookmarklet that goes through the dom tree and
> stops (or stops and deletes) all audio elements. I can't have such a
> bookmarklet for things that are only reachable via JS scope (and I
> don't mean JS object graph, I mean function call chains, since that's
> the best way to be evil, site's don't need to let people have access
> via object properties).

This doesn't seem like something a typical end user would do. Anyway, if  
you want to do it through script maybe mute function/property/something  
that affects the top-level browsing context and children, if any, would be  
better, as that could take care of other means of embedding sound as well,  
such as <embed>, <video>, <object>, and <iframe>.


-- 
Anne van Kesteren
<http://annevankesteren.nl/>
<http://www.opera.com/>
Received on Friday, 19 October 2007 05:19:25 UTC

This archive was generated by hypermail 2.3.1 : Monday, 13 April 2015 23:08:37 UTC