| html_name | R Documentation |
Vectorized accessors returning one value per node, with NA for missing
nodes.
html_name(x)
html_namespace(x)
html_type(x)
x |
A |
A character vector as long as x.
html_name(): the element name, lowercase for HTML elements and in
the spec's mixed case for SVG ones such as "foreignObject"; the
doctype's name for a doctype node; NA for other nodes.
html_namespace(): the namespace URI of an element, for example
"http://www.w3.org/1999/xhtml" or "http://www.w3.org/2000/svg";
NA for other nodes.
html_type(): one of "document", "fragment", "doctype",
"element", "text", "comment" and "processing_instruction". A
<template> is an "element".
Other node values:
html_attr(),
html_markdown(),
html_serialize(),
html_strings(),
html_text(),
html_text_clean()
doc <- html_parse("<p>Text<svg><foreignObject/></svg><!-- note -->")
nodes <- html_children(html_children(html_root(doc))[2], FALSE)
nodes <- html_children(nodes, FALSE)
html_type(nodes)
html_name(nodes)
html_namespace(nodes)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.