W3C home > Mailing lists > Public > www-style@w3.org > October 2011

RE: [css-device-adapt][cssom] Missing VIEWPORT_RULE definition

From: Sylvain Galineau <sylvaing@microsoft.com>
Date: Wed, 12 Oct 2011 15:30:15 +0000
To: "L. David Baron" <dbaron@dbaron.org>, Tab Atkins Jr. <jackalmage@gmail.com>
CC: John Daggett <jdaggett@mozilla.com>, Anne van Kesteren <annevk@opera.com>, "www-style@w3.org" <www-style@w3.org>
Message-ID: <3C4041FF83E1E04A986B6DC50F01782938BC53@TK5EX14MBXC297.redmond.corp.microsoft.com>

[L. David Baron:]
> 
> On Tuesday 2011-10-11 18:33 -0700, Tab Atkins Jr. wrote:
> > Whose code?  Nobody should ever be typing numeric constants, right?
> > The only reason they exist is because of tradition from languages that
> > don't have interned strings, or something.
> 
> Last time I tried to use the named constants in JavaScript code I found it
> wasn't interoperable, and had to use the numbers.  (I think I was using
> the node type constants in that case.)  Then again,
> alert(CSSRule.STYLE_RULE) works in Gecko, WebKit, and Opera.  (Maybe the
> problem I had was with IE?)
> 
If you were using IE8 or earlier (or equivalent docmodes), yes. These are now 
defined in IE9 standards mode. So cross-browser code would still use numbers.
Received on Wednesday, 12 October 2011 15:30:54 UTC

This archive was generated by hypermail 2.4.0 : Monday, 23 January 2023 02:14:05 UTC