Lines Matching refs:document
1 const otherWindow = document.body.appendChild(document.createElement("iframe")).contentWindow;
18 const element = document.body.appendChild(otherWindow.document.createElement("meh"));
26 const doc = otherWindow.document,
30 document.body.appendChild(element);
31 assert_equals(element.ownerDocument, document);
36 assert_equals(element.ownerDocument, document);
41 assert_equals(child.ownerDocument, document);
49 const host = document.createElement("div"),
51 child = shadow.appendChild(document.createElement("trala")),
52 furtherChild = child.appendChild(document.createElement("waddup"));
76 const frame = document.body.appendChild(document.createElement("iframe"));
80 …document.addEventListener("hi", frame.contentWindow.listener); // listener intentionally not wrapp…
81 document.addEventListener("hi", t.step_func(e => {
85 document.dispatchEvent(event);