This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 8135 - "The script element has a src attribute set where previously the element had no such attribute." - should probably only happen if the script is in a document at the time, else http://software.hixie.ch/utilities/js/live-dom-viewer/saved/298 would break (th
Summary: "The script element has a src attribute set where previously the element had ...
Status: CLOSED FIXED
Alias: None
Product: HTML WG
Classification: Unclassified
Component: pre-LC1 HTML5 spec (editor: Ian Hickson) (show other bugs)
Version: unspecified
Hardware: Other other
: P3 normal
Target Milestone: LC
Assignee: Ian 'Hixie' Hickson
QA Contact: HTML WG Bugzilla archive list
URL: http://www.whatwg.org/specs/web-apps/...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-10-30 16:53 UTC by contributor
Modified: 2010-10-04 13:56 UTC (History)
5 users (show)

See Also:


Attachments

Description contributor 2009-10-30 16:53:01 UTC
Section: http://www.whatwg.org/specs/web-apps/current-work/#script

Comment:
"The script element has a src attribute set where previously the element had no such attribute." - should probably only happen if the script is in a document at the time, else http://software.hixie.ch/utilities/js/live-dom-viewer/saved/298 would break (the script would run when the attribute was set, not when the element was appended). [pt]

Posted from: 128.232.100.227
Comment 1 Philip Taylor 2009-10-30 16:56:48 UTC
Oh, and the thing about child nodes changing should probably only happen if the element's in the document too, else it would execute as soon as innerHTML was set (which doesn't happen when I test it).
Comment 2 Ian 'Hixie' Hickson 2009-12-13 17:41:47 UTC
EDITOR'S RESPONSE: This is an Editor's Response to your comment. If you are satisfied with this response, please change the state of this bug to CLOSED. If you have additional information and would like the editor to reconsider, please reopen this bug. If you would like to escalate the issue to the full HTML Working Group, please add the TrackerRequest keyword to this bug, and suggest title and text for the tracker issue; or you may create a tracker issue yourself, if you are able to do so. For more details, see this document:
   http://dev.w3.org/html5/decision-policy/decision-policy.html

Status: Accepted
Change Description: see diff given below
Rationale: Concurred with reporter's comments.
Comment 3 contributor 2009-12-13 17:43:46 UTC
Checked in as WHATWG revision r4441.
Check-in comment: make scripts not execute outside documents
http://html5.org/tools/web-apps-tracker?from=4440&to=4441