Module: Dommy::Backend::Makiri

Defined in:
lib/dommy/backend/makiri_adapter.rb

Overview

Makiri (Lexbor-based) backend. HTML5 parsing and CSS selectors via Lexbor, plus a native XPath 1.0 engine, with no libxml2 dependency. Makiri splits its document model into Makiri::HTML::Document (case-folding, html/head/body) and Makiri::XML::Document (case-preserving, namespaces, CDATA); both share the Makiri::Document / Makiri::Node bases used here for is_a? checks. HTML parses go through HTML::Document; new Document() / createDocument go through XML::Document.

Defined Under Namespace

Classes: Namespace

Constant Summary collapse

Element =

Class references for is_a? / type-checking (the shared bases, so both HTML and XML node subclasses match).

::Makiri::Element
Document =
::Makiri::Document
Text =
::Makiri::Text
Comment =
::Makiri::Comment
CDATASection =
::Makiri::CDATASection
ProcessingInstruction =
::Makiri::ProcessingInstruction
DocumentFragment =
::Makiri::DocumentFragment
DocumentType =
::Makiri::DocumentType
Node =
::Makiri::Node
HTML_NAMESPACE_URI =
"http://www.w3.org/1999/xhtml"
SCOPE_ATTR =

Throwaway attribute used to bind :scope to a context element — Lexbor has no :scope, so a scoped query temporarily marks the element and rewrites :scope to an attribute selector, removing the mark after.

"data-dommy-scope"

Class Method Summary collapse