Skip to end of metadata
Go to start of metadata

static ElementPtr FB::DOM::Element::create ( const FB::JSObjectPtr api  )  [inline, static]

Creates a FB::DOM::Element object from a JSObjectPtr representing a DOM object. This will probably throw an exception and definitely not work right if the DOM object represented is not a Element.

Parameters:
api The FB::JSObjectAPI object containing the element to wrap
Returns:
FB::DOM::ElementPtr to the created Element object

Reimplemented from FB::DOM::Node.

Reimplemented in FB::DOM::Document.

Definition at line 61 of file ScriptingCore/DOM/Element.h.

Referenced by FB::Npapi::NpapiBrowserHost::getDOMElement(), getElementById(), FB::ActiveX::AXDOM::Element::getElementsByTagName(), getElementsByTagName(), and FB::ActiveX::AXDOM::Document::getElementsByTagName().

00061                                                            {
00062             if (!api) { return ElementPtr(); } // If the API is null, return a NULL Element
00063             return api->getHost()->_createElement(api);
00064         }


Generated on 18 Jun 2013 for FireBreath by  doxygen 1.6.1
Labels
  • None