From 24ab8b2df697e6861c943e4845159cdd40c27255 Mon Sep 17 00:00:00 2001 From: Ian Hickson Date: Thu, 31 May 2007 23:54:10 +0000 Subject: [PATCH] [] (0) Make scripts not run in non-active documents; add issue regarding this for events. git-svn-id: http://svn.whatwg.org/webapps@848 340c8d12-0b0e-0410-8428-c7bf67bfef74 --- index | 14 +++++++++++--- source | 17 +++++++++++++---- 2 files changed, 24 insertions(+), 7 deletions(-) diff --git a/index b/index index 690a6518a92..fb2ea6084f4 100644 --- a/index +++ b/index @@ -18958,11 +18958,13 @@ notes on what would need to be defined for dashed lines:

If the load was successful, then first the user agent must fire a load event at the - element, and then, if scripting is enabled and + element, and then, if scripting is enabled, and the Document does not have designMode - enabled, the user agent must run the script according to the semantics of - the relevant scripting language defines. + enabled, and the Document is the active + document in its browsing context, the user + agent must run the script according to the semantics that the relevant + scripting language defines.

If the script is from an external file, then that file must be used as the file to execute. @@ -26112,6 +26114,12 @@ JSURI: http://ietfreport.isoc.org/all-ids/draft-hoehrmann-javascript-scheme-00.t

4.9.5. Events

+

We need to define how to handle events that are to be + fired on a Document that is no longer the active document of its browsing + context, and for Documents that have no browsing context. Do the events + fire? Do the handlers in that document not fire? Do we just define + scripting to be disabled when the document isn't active? +

4.9.5.1. Event handler attributes
diff --git a/source b/source index 86d18ba6a5f..9ac4709be81 100644 --- a/source +++ b/source @@ -16798,11 +16798,13 @@ notes on what would need to be defined for dashed lines:

If the load was successful, then first the user agent must fire a load event at - the element, and then, if scripting is enabled and the + the element, and then, if scripting is enabled, and the Document does not have designMode enabled, the user - agent must run the script according to the semantics of the relevant - scripting language defines.

+ title="dom-document-designMode">designMode enabled, and the + Document is the active document in its + browsing context, the user agent must run the script + according to the semantics that the relevant scripting language + defines.

If the script is from an external file, then that file must be used as the file to execute.

@@ -23602,6 +23604,13 @@ JSURI: http://ietfreport.isoc.org/all-ids/draft-hoehrmann-javascript-scheme-00.t

Events

+

We need to define how to handle events that are + to be fired on a Document that is no longer the active document of + its browsing context, and for Documents that have no browsing + context. Do the events fire? Do the handlers in that document not + fire? Do we just define scripting to be disabled when the document + isn't active?

+
Event handler attributes

HTML elements can have event handler