W3C home > Mailing lists > Public > public-html-bugzilla@w3.org > March 2010

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

From: <bugzilla@wiggum.w3.org>
Date: Fri, 19 Mar 2010 08:42:59 +0000
To: public-html-bugzilla@w3.org
Message-Id: <E1NsXnH-0003wv-0r@wiggum.w3.org>
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 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Friday, 19 March 2010 08:43:07 GMT