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 11300 - Remove form owner from scope chain in event handlers
Summary: Remove form owner from scope chain in event handlers
Alias: None
Product: HTML WG
Classification: Unclassified
Component: LC1 HTML5 spec (show other bugs)
Version: unspecified
Hardware: PC Windows NT
: P2 normal
Target Milestone: ---
Assignee: Ian 'Hixie' Hickson
QA Contact: HTML WG Bugzilla archive list
Depends on:
Reported: 2010-11-11 17:49 UTC by Jacob Rossi [MSFT]
Modified: 2011-08-04 05:36 UTC (History)
5 users (show)

See Also:

testcase (106 bytes, text/html)
2010-11-11 19:06 UTC, Jonas Sicking (Not reading bugmail)

Description Jacob Rossi [MSFT] 2010-11-11 17:49:51 UTC
In Section under Lexical Environment Scope, avoiding step 2 (adding the form owner into the scope chain for form-associated elements) could yield a performance improvement to the spec. We have evidence that implementors would not endure a compat impact by avoiding this step because weve been shipping like this and havent witnessed issues. Since removing it could yeild a performance improvement in the spec and there doesn't appear to be a compat impact, the spec would be better without it.
Comment 1 Jonas Sicking (Not reading bugmail) 2010-11-11 19:06:29 UTC
Created attachment 934 [details]

Are you saying that for something like

  <form method="POST">
    <input onclick="this.value = method;">

IE throws an exception and doesn't alter the value of the input?

For which versions of IE is this true?

I'd love to remove this from Firefox, not just for performance reasons, but also to reduce complexity.
Comment 2 Jacob Rossi [MSFT] 2010-11-11 23:42:48 UTC
Turns out IE behaves differently than I described and we can't assert that there is not compat impact for this. We should keep this spec'd as is.
Comment 3 Michael[tm] Smith 2011-08-04 05:36:10 UTC
mass-move component to LC1