Re: select onchange with typing in Webkit
- From: Thomas 'PointedEars' Lahn <PointedEars@xxxxxx>
- Date: Mon, 13 Oct 2008 23:12:09 +0200
Chris Riesbeck wrote:
Thomas 'PointedEars' Lahn wrote:
Chris Riesbeck wrote:
dhtml wrote:You are mistaken.
Chris Riesbeck wrote:Though that behavior, while shared by IE, FF and Opera, isn't required by
Toy example atFocus the select and type 's'.
http://www.cs.northwestern.edu/~riesbeck/demo/menutest.html
Result:
Mozilla/5.0 (Macintosh; U; PPC Mac OS X 10_4_11; en) AppleWebKit/525.18
(KHTML, like Gecko) Version/3.1.2 Safari/525.22
'shoe' is selected, onchange does not fire
Mozilla/5.0 (Macintosh; U; PPC Mac OS X 10_4_11; en) AppleWebKit/527.3+
(KHTML, like Gecko) Version/3.1.2 Safari/525.22
'shoe' is selected, onchange fires
Same version, but "AppleWebKit/527.3+" it works.
Garrett
the standard, I think.
The W3C siteThat *is* the standard, not just a "W3C site".
just says that when focus is lost, and the selection has changed, then itAnd the element did not lose focus, did it?
should fire.
Typing in the menu does not lose focus. Therefore, no onchange is
required to be fired. However onchange is fired in IE, FF, and Opera.
Indeed, I did not know that since I seldom listen to `change' events on
`select' controls with size > 1.
Hence I said this behavior is not portable.
You are not making much sense here, though. Since all major DOMs do that,
including the WebKit DOM (with the exception of prefix selection, which is a
bug that will probably be fixed in the next release), isn't it instead that
this behavior *is* portable/interoperable?
Are you saying onchange should be fired according to the standard?
Either that, or I overlooked something in the standard (unlikely), or this
behavior should become the standard (since it appears to be interoperable).
However, the problem with the latter would be that the `change' event
definition would become more complicated and bound to a particular markup
language, which I don't think would be a Good Thing.
PointedEars
--
Use any version of Microsoft Frontpage to create your site.
(This won't prevent people from viewing your source, but no one
will want to steal it.)
-- from <http://www.vortex-webdesign.com/help/hidesource.htm>
.
- References:
- select onchange with typing in Webkit
- From: Chris Riesbeck
- Re: select onchange with typing in Webkit
- From: dhtml
- Re: select onchange with typing in Webkit
- From: Chris Riesbeck
- Re: select onchange with typing in Webkit
- From: Thomas 'PointedEars' Lahn
- Re: select onchange with typing in Webkit
- From: Chris Riesbeck
- select onchange with typing in Webkit
- Prev by Date: Re: Refreshing page properly on back button
- Next by Date: Re: FAQ Topic - What books cover EcmaScript? (2008-10-08)
- Previous by thread: Re: select onchange with typing in Webkit
- Next by thread: Re: select onchange with typing in Webkit
- Index(es):
Relevant Pages
|