Class: Makiri::DocumentType
- Defined in:
- lib/makiri/document_type.rb,
ext/makiri/makiri.c
Overview
A ‘<!DOCTYPE …>` node. Reachable via Makiri::Document#internal_subset or as a child of the document. Exposes the doctype name (via Node#name) and its public/system identifiers; XPath cannot reach it (XPath 1.0 has no doctype node type), matching Nokogiri/libxml2.
Instance Method Summary collapse
- #external_id ⇒ Object
-
#public_id ⇒ Object
DocumentType identifiers (WHATWG DOM names; external_id is the Nokogiri-compatible alias for public_id).
- #system_id ⇒ Object
Methods inherited from Node
#<<, #==, #[], #[]=, #add_child, #add_class, #add_next_sibling, #add_previous_sibling, #after, #ancestors, #append_class, #at, #at_css, #at_xpath, #attribute, #attribute?, #attribute_nodes, #attributes, #before, #blank?, #child, #children, #classes, #comment?, #content, #content=, #css, #delete, #document, #document?, #document_fragment?, #element?, #element_children, #elements, #eql?, #first_element_child, #hash, #inner_html, #inner_html=, #inner_text, #inspect, #key?, #keys, #last_element_child, #line, #matches?, #name, #name=, #next, #next_element, #next_sibling, #node_type, #outer_html, #outer_html=, #parent, #parse, #path, #previous, #previous_element, #previous_sibling, #processing_instruction?, #remove, #remove_class, #replace, #root, #search, #set_attribute, #text, #text?, #to_h, #to_html, #to_s, #traverse, #unlink, #value, #values, #xpath
Instance Method Details
#external_id ⇒ Object
163 164 165 166 167 |
# File 'ext/makiri/glue/ruby_node.c', line 163
static VALUE
mkr_doctype_public_id(VALUE self)
{
return mkr_doctype_id(self, 0);
}
|
#public_id ⇒ Object
DocumentType identifiers (WHATWG DOM names; external_id is the Nokogiri-compatible alias for public_id).
163 164 165 166 167 |
# File 'ext/makiri/glue/ruby_node.c', line 163
static VALUE
mkr_doctype_public_id(VALUE self)
{
return mkr_doctype_id(self, 0);
}
|
#system_id ⇒ Object
169 170 171 172 173 |
# File 'ext/makiri/glue/ruby_node.c', line 169
static VALUE
mkr_doctype_system_id(VALUE self)
{
return mkr_doctype_id(self, 1);
}
|