W3C home > Mailing lists > Public > www-dom@w3.org > July to September 2009

HTML tag names vs. IDL interface names.

From: Dimitry Golubovsky <golubovsky@gmail.com>
Date: Tue, 14 Jul 2009 13:16:58 -0400
Message-ID: <bcba51a0907141016x4a845454i40800739d4fe367f@mail.gmail.com>
To: www-dom@w3.org
Hi,

I am trying to find a summary on the correspondence between HTML tag
names, and (Web) IDL interface names related to DOM nodes representing
HTML tags..

In general, the relationship is straightforward, like <body>
corresponds to HTMLBodyElement. There are however exceptions like
<img> corresponds to HTMLImageElement.

Have these exceptions been summarized anywhere (preferrably in some
parseable form)? I have tried to find relevant program sources, but I
can only see hardcoding of such exceptions rather than reference to
some generalized source.

Thanks.

PS This is needed for the development of Haskell-based Web IDL tools,
where each IDL interface is represented by a distinct Haskell type, so
maintaining proper type approximation is important to take the
benefits from the Haskell type system.

-- 
Dimitry Golubovsky

Anywhere on the Web
Received on Tuesday, 14 July 2009 17:17:40 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Friday, 22 June 2012 06:14:02 GMT