http://www.oschina.net/code/explore/firefox-4.0b7/embedding/browser/activex/src/common/IEHtmlElement.cpp