[Bug 7851] Some (perhaps all) scripts with a for="" attribute should be ignored

http://www.w3.org/Bugs/Public/show_bug.cgi?id=7851


Henri Sivonen <hsivonen@iki.fi> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |hsivonen@iki.fi




--- Comment #5 from Henri Sivonen <hsivonen@iki.fi>  2010-03-19 08:42:57 ---
(In reply to comment #4)
>           -If there's a 'for=window' and 'event=onload', execute it.
>           -If there's a 'for=window' and 'event=onload()', execute it.

Gecko trims ' ', '\r', '\n' and '\t' characters from the start and end of the
values of both attributes.

The string "window" is compared Unicode-case-insensitively after the trimming.
That is, "w&#304;ndow" matches "window". The value of event is considered to
match if (case-insensitively) it after the above-mentioned trimming
 a) is "onload"
OR
 b) starts with "onload("
OR
 c) starts with "onload "

It's unclear to me if Gecko actually registers event handlers in non-onload
cases or if the code looks like that is dead code.


-- 
Configure bugmail: http://www.w3.org/Bugs/Public/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.

Received on Friday, 19 March 2010 08:43:02 UTC