Using script to implement namespaces

There are a number of examples of people using script to implement  
particular namespaces. An example that comes immediately to mind is  
FormFaces (www.formfaces.com): you take an XHTML+XForms document, add a  
single script element at the top, and it works in browsers that haven't  
implemented XForms yet.

However, ideally you would like to use the one document, also in browsers  
that have implemented XForms.

So a proposal, a new attribute 'implements':

	<script src="xforms.js" type="..." implements="xf" />

This would tell future browsers to ignore this script element if they  
recognise the namespace bound to the prefix "xf".

Maybe also needed for object elements.

Steven

Received on Tuesday, 10 July 2007 20:55:08 UTC