W3C home > Mailing lists > Public > public-html@w3.org > July 2007

Re: HTML Extensibility Through Script

From: Andrew Fedoniouk <news@terrainformatica.com>
Date: Tue, 10 Jul 2007 11:48:25 -0700
Message-ID: <000301c7c327$3d227e00$f502000a@internal.toppro.net>
To: "Thomas Broyer" <t.broyer@gmail.com>, <public-html@w3.org>

----- Original Message ----- 
From: "Thomas Broyer" <t.broyer@gmail.com>
To: <public-html@w3.org>
Sent: Tuesday, July 10, 2007 10:59 AM
Subject: Re: HTML Extensibility Through Script

>  ...
>> It would be nice though if UA vendors implement some
>> flag attribute like __ua_vendor/__ua_version  for the root element.
>> Such an attribute may be added while parsing DOM tree.
>> So scripts and CSS can reliably use it as a selector .
> And go back to "if (navigator.indexOf('MSIE') > 0) { /* it's IE */ }"
> kind of things?

Idea is exactly to aviod need of such robust detections 
like indexOf('MSIE') and as a bonus to have something like this:

html[__ua_engine="Trident"] span.some 
   display: inline-block;

html[__ua_engine="Gecko"] span.some 
   display: block;

I understand all implications of versioning but life is life.
In the shed of light of modular design of CSS specification 
not all UAs will have exactly same set of CSS features implemented.

Andrew Fedoniouk.
Received on Tuesday, 10 July 2007 19:19:36 UTC

This archive was generated by hypermail 2.3.1 : Thursday, 29 October 2015 10:15:24 UTC