FireBreath  1.4.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Pages
ElementPtr FB::DOM::Document::createElement ( const std::string &  name) const
virtual

roughly equivalent to calling document.createElement(name) from javascript

Returns
DOM::ElementPtr wrapping the newly created element

Reimplemented in FB::ActiveX::AXDOM::Document.

Definition at line 50 of file ScriptingCore/DOM/Document.cpp.

References FB::variant_list_of().

51 {
52  JSObjectPtr api = callMethod<FB::JSObjectPtr>("createElement", FB::variant_list_of(name));
53  return Element::create(api);
54 }
boost::shared_ptr< FB::JSObject > JSObjectPtr
Defines an alias representing a JSObject shared_ptr (you should never use a JSObject* directly) ...
Definition: APITypes.h:109
FB::detail::VariantListInserter variant_list_of(FB::variant v)
Allows convenient creation of an FB::VariantList.
Definition: variant_list.h:122
static ElementPtr create(const FB::JSObjectPtr &api)
Creates a FB::DOM::Element object from a JSObjectPtr representing a DOM object. This will probably th...

Here is the call graph for this function: