Class: Makiri::DocumentType

Inherits:
Node
  • Object
show all
Defined in:
lib/makiri/document_type.rb,
ext/makiri/makiri.c

Overview

A ‘<!DOCTYPE …>` node. Reachable via 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.

Direct Known Subclasses

HTML::DocumentType, XML::DocumentType

Method Summary

Methods inherited from Node

#add_class, #append_class, #at, #attribute, #attribute?, #attributes, #blank?, #cdata?, #classes, #clone, #comment?, #document?, #document_fragment?, #dup, #each, #element?, #inspect, #path, #processing_instruction?, #remove_class, #root, #search, #set_attribute, #text?, #to_h, #traverse