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

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