Skip to main content

document_dispatch_event

Function document_dispatch_event 

Source
pub(crate) fn document_dispatch_event(
    it: &mut Interp,
    this: Value,
    a: &[Value],
) -> Result<Value, Value>
Expand description

document.dispatchEvent(event)。JS側から直接document.dispatchEvent(new Event('click'))のように合成発火する経路(実クリックのDOMバブリング経由の 到達はdispatch_event_in_interp側の別経路)。固定種別以外はdocument 自身をターゲットとしてevent_target_dispatch_eventと同じロジックで 発火する(丸ごと未対応だった。2026-07-16 発見・実装)。