From 15b258dc74ffe1ba321b81a1c876f129681a97c2 Mon Sep 17 00:00:00 2001 From: Domenic Denicola Date: Thu, 13 Jul 2017 16:37:38 -0400 Subject: [PATCH] Allow not executing scripts inserted by document.write() This allows user agents to experiment with better heuristics for not executing such scripts, as per https://github.com/WICG/interventions/issues/17. --- source | 19 ++++++++++++++++--- 1 file changed, 16 insertions(+), 3 deletions(-) diff --git a/source b/source index c189b025ea2..819b7af82b8 100644 --- a/source +++ b/source @@ -57437,7 +57437,8 @@ interface HTMLScriptElement : HTMLElement {

When inserted using the document.write() - method, script elements execute (typically blocking further script execution or HTML parsing), but when inserted using + method, script elements usually + execute (typically blocking further script execution or HTML parsing). When inserted using the innerHTML and outerHTML attributes, they do not execute at all.

@@ -90625,8 +90626,10 @@ document.body.appendChild(frame) "<plaintext>" or "<!--"). In other cases, the call can clear the current page first, as if document.open() had been called. In yet more cases, the method - is simply ignored, or throws an exception. To make matters worse, the exact behavior of this - method can in some cases be dependent on network latency 贺师俊 (HE Shi-Jun), Shiki Okasaka, + Shivani Sharma, Shubheksha Jalan, Sierk Bornemann, Sigbjørn Finne,