HTML tag names vs. IDL interface names.

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 UTC