W3C home > Mailing lists > Public > whatwg@whatwg.org > November 2011

[whatwg] Allowing custom attributes on <html> or <body> in documents for media resources

From: Robert O'Callahan <robert@ocallahan.org>
Date: Wed, 16 Nov 2011 11:07:40 +1300
Message-ID: <CAOp6jLZY==5Jnca0Pnc5bc6n-4Z7h1S-K0YtOd4PaRj5cJs2Ug@mail.gmail.com>
On Wed, Nov 16, 2011 at 12:06 AM, Henri Sivonen <hsivonen at iki.fi> wrote:

> On Thu, Nov 10, 2011 at 2:03 AM, Robert O'Callahan <robert at ocallahan.org>
> wrote:
> > http://www.whatwg.org/specs/web-apps/current-work/#read-media
> > Can we allow the UA to add custom vendor-prefixed attributes to the
> <html>
> > and/or <body> elements? Alternatively, a vendor-prefixed class? We want
> to
> > be able to use a style sheet with rules matching custom attributes to
> > indicate various situations (e.g., whether the document is a toplevel
> > browsing context) to set the viewport background.
>
> Why can't non-prefixed attributes be minted for these use cases?
>

Yes, we should probably just do that.

So I propose that a "toplevel" class be set on the root element of a media
resource document in a toplevel browsing context.

Rob
-- 
"If we claim to be without sin, we deceive ourselves and the truth is not
in us. If we confess our sins, he is faithful and just and will forgive us
our sins and purify us from all unrighteousness. If we claim we have not
sinned, we make him out to be a liar and his word is not in us." [1 John
1:8-10]
Received on Tuesday, 15 November 2011 14:07:40 UTC

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