htmlNode: Create a DOM node representation.

Description Usage Arguments Value Examples

Description

Create a new DOM node via explicit HTML or SVG or JavaScript code or a referece to an existing DOM node via CSS or XPath

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
htmlNode(x="")
svgNode(x="")
javascript(x="")
css(x="", pageID=numeric())
xpath(x="", pageID=numeric())
nodePtr(x="", pageID=numeric())
objPtr(x="", pageID=numeric())
Number(x="")
String(x="")
Boolean(x="")

Arguments

x

A character value consisting of HTML, SVG, JavaScript, CSS, or XPath code, as appropriate.

pageID

A numeric value identifying a web page connection; see htmlPage.

Value

An S4 object of class DOM_node_HTML, DOM_node_SVG, DOM_node_JS, DOM_node_CSS, DOM_node_XPath, DOM_node_ptr, DOM_obj_ptr, DOM_number, DOM_character, or DOM_boolean, respectively.

Examples

1
htmlNode("<p>test</p>")

pmur002/DOM documentation built on May 25, 2019, 10:20 a.m.