lib/dommy/document.rb
Ruby dynamically invokes a method with sendRuby loads a relative source module
SHA-256f25500efdf12db52a3838ba1bf17e252b3c523c65a0a4a2871090f081b55f4ef
MaleculeH₂(DbOs)
Evidence
1# frozen_string_literal: true
2
3require "uri"
4
5require_relative "internal/node_wrapper_cache"
6require_relative "internal/mutation_coordinator"
7require_relative "internal/shadow_root_registry" …
329:4… qn = qualified_name.to_s
330 unless qn.empty?
331 el = doc.send(:create_element_ns, namespace, qualified_name)
332 Backend.set_document_root(doc.backend_doc, el.__dommy_backend_node__ …
369:10… = Document.new(nil, backend_doc: Backend.parse("<!DOCTYPE html><html><head></head><body></body></html>"))
370 doc.title = title.to_s unless title.nil? || title.equal?(Bridge::UNDEFINED)
371 doc
742:16… pond_to?(:namespace_uri) && c.namespace_uri == "http://www.w3.org/1999/xhtml"
743 end
744 end
745
746 # Resolve `body` fresh from the tree (not memoized …
757:22… _tree
758 Internal::AccessibilityTree.build(self)
759 end
760 alias_method :aria_tree, :accessibility_tree
761
762 # A Playwright-compatible ARIA snapshot of the document.
763 def aria_snapshot
764 Inter …