FireBreath  1.4.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Pages
void FB::ActiveX::AXDOM::Element::setInnerHTML ( const std::string &  html) const

Sets an inner html for the element.

htmlThe html to set

Reimplemented from FB::DOM::Element.

Definition at line 86 of file ActiveXCore/AXDOM/Element.cpp.

87 {
88  CComBSTR newHtml(html.c_str());
89  CComQIPtr<IHTMLElement> elem(m_axDisp);
90  HRESULT hr = elem->put_innerHTML(newHtml);
91  if (!SUCCEEDED(hr)) {
92  throw FB::script_error("Could not set innerHtml");
93  }
94 }
Exception type; when thrown in a JSAPI method, a javascript exception will be thrown.
Definition: JSExceptions.h:28