Skip to end of metadata
Go to start of metadata

ElementPtr FB::DOM::Element::getElement ( const std::string &  name  )  const [inline, virtual]

Gets a child element of the specified name.

This is the rough equivilent of the following javascript command

      // if name = child
      var el2 = element.child;
      // or
      var el2 = element[name];
Parameters:
name The name of the subelement.
Returns:
The child element.

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

Referenced by getChildNode(), and getParentNode().

00191         {
00192             JSObjectPtr api = getProperty<FB::JSObjectPtr>(name);
00193             ElementPtr retVal((api) ? new Element(api) : NULL);
00194             return retVal;
00195         }


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