We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
IE7, jQuery1.7.0で、インジケータで追加したDOMのスタイルを取得するテストで止まってしまう。
$percentElem.css('font-size')
ディベロッパツールで確認したところ、上記で箇所でエラーが起きて止まっていた。
The text was updated successfully, but these errors were encountered:
hifive#141 非同期でスタイルを確認するようにしました。
536fbaf
font-sizeのスタイルの適用を確認をやめました(colorで確認しています)
$().css()でスタイルを取得するとき、IEではcurrentStyleオブジェクト内の値を取得します。 しかし、currentStyleオブジェクトは非同期であるため ( MSDN: http://msdn.microsoft.com/en-us/library/ie/ms535231(v=vs.85).aspx ) 同期で取得できない場合があります。
そのため、テストではインジケータの表示から100ms待ってからスタイルが適用されているかどうかを確認するようにしました。
また、font-sizeとcolorの両方を確認していましたが、colorだけを確認するようにしました。
Sorry, something went wrong.
fukudayasuo
No branches or pull requests
IE7, jQuery1.7.0で、インジケータで追加したDOMのスタイルを取得するテストで止まってしまう。
ディベロッパツールで確認したところ、上記で箇所でエラーが起きて止まっていた。
The text was updated successfully, but these errors were encountered: