aduros/Browser.hx — pull request #2 by jdonaldson (2012-12-02 07:06:31+00:00)
Title: Remap HTMLHtmlElement to HTMLElement

I saw that there was a conflict between these idl files:
HTMLElement
HTMLHtmlElement (which is mapped to HtmlElement)

The two externs have the same name with different capitalization. This causes problems resolving the types in other externs. One possible way of dealing with this is mapping HTMLHtmlElement to HTMLElement, since it only defines a few extra misc. fields. That's what this commit does. I'm able to successfully compile everything in the library now.

Read on for more details from the commit log:

This commit maps the HTMLHtmlElement to the HTMLElement type
HTMLHtmlElement is the root html element of a document. It
currently has two extra metadata fields: manifest and version.
Otherwise, it behaves like a normal HTMLElement.

The commit also includes a simple build.hxml that will
include all of the js.html classes, to ensure that the types
resolve correctly.

After re-generating the externs, I found that several classes
were no longer being created, are they still needed?
Here are the classes that would be deleted:
deleted: generated/js/html/IceCallback.hx
deleted: generated/js/html/IceCandidate.hx
deleted: generated/js/html/PeerConnection00.hx
deleted: generated/js/html/SessionDescription.hx