Re: HTML Extensibility Through Script

----- Original Message ----- 
From: "Doug Schepers" <>
To: <>
Sent: Tuesday, July 10, 2007 7:33 AM
Subject: HTML Extensibility Through Script

> The conversation then turned to how one might use this lib, given that 
> some browsers might support MathML natively and some not.  There was a 
> suggestion (a good one, I think) that a <script> element might be made 
> somehow conditional (through a parameter, an attribute, or through 
> encapsulation as the fallback for an <object>, doesn't matter to me), 
> such that if the browser supported a that feature natively, the script 
> implementation of that feature wouldn't run.

<script type="application/ecmascript">
   if( featureXsupported() )
   // featureXemulation goes here.


<script type="application/ecmascript">
   if( !featureXsupported() ) include("featureXemulation.js");

It is IMO not realistic to have some universal attribute that 
will allow to filter all possible features of UA.

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 .

Andrew Fedoniouk.

Received on Tuesday, 10 July 2007 16:18:45 UTC