focusin/focusoutイベントにバインドされたテキスト入力があります。
$(element)
.focusin(function(e) {})
.focusout(function(e) {
var to = e.relatedTarget || e.toElement;
// undefined in chrome, fine in IE
});
でfocusout、私はrelatedTarget情報に興味があります。つまり、テキスト入力がフォーカスを失うとDOM要素がフォーカスを受け取りますが、このプロパティはundefinedイベント用です。
一方、toElementと同等のInternetExplorerであると私が信じているrelatedTargetは利用可能です。つまり、私のfocusoutハンドラーはIEでは正常に機能しますが、他のブラウザーでは機能しません。
上記の制限の回避策はありますか?