Class: Dommy::Internal::MutationCoordinator

Inherits:
Object
  • Object
show all
Defined in:
lib/dommy/internal/mutation_coordinator.rb

Overview

Coordinates mutation notification to observers and custom element lifecycle callbacks. Isolates mutation observation and custom element logic from Document's public API.

Constant Summary collapse

BLANK_IFRAME_SRCS =

A srcless ("blank"/about:blank) <iframe> connected to the document gets an empty nested browsing context (a real, complete content document) and fires its load event ASYNCHRONOUSLY (a microtask), like a real browser — handlers are commonly attached after insertion (`appendChild(f); f.onload

…`). Without this, code that awaits a blank iframe's load and then reads

iframe.contentWindow.document hangs: FingerprintJS's withIframe (its font sources) does exactly that, which hung note.com's tracking plugin and its whole Nuxt hydration. A src iframe is left to the integration layer.

["", "about:blank"].freeze

Instance Method Summary collapse