-
Notifications
You must be signed in to change notification settings - Fork 20.5k
Core: Remove IE-specific support tests, rely on document.documentMode #4387
New issue
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
Conversation
test/unit/fake-document-mode.js
Outdated
| @@ -0,0 +1,7 @@ | |||
| QUnit.module( "fake-document-mode", { afterEach: moduleTeardown } ); | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I haven't added this test to the list where all others are specified as it only makes sense in the mode with faked documentMode.
213f86f to
c8c152b
Compare
|
It turns out my workaround for Chrome with There are two ways we can work around this:
Note that in the past we've been bitten by an assumption that IE won't fix a bug when IE had a bug with dimensions in fullscreen mode inside iframes (see #1764) and we applied a workaround that multiplied the dimensions by 100 based on the |
|
I prefer the first option. It seems like the "fullscreen in iframes" bug was trivial to fix but something tells me that IE11 isn't going to fix its unreliable box sizing ever. If that seems like too much risk we could just guard it with |
|
I also prefer the first option. As I mentioned in #4386 (comment) , if anyone ever does release an update or fork of IE that fixes the issue, we can re-add support tests then. |
|
PR updated and is ready for final review. I removed the special Chrome with fake docMode run, I also modified some tests to IE-sniff when deciding whether to skip instead of performing sometimes complex (& easier to do wrong) support tests where possible. |
|
@gibson042 PR updated (changes are in the new fixup commit). I also added a support comment for e0d9411 that was missing. |
dmethvin
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Awesome!
Also, update some tests to IE-sniff when deciding whether to skip a test. Fixes jquerygh-4386
Summary
To make sure none of the IE-targeted workarounds depends on IE bugs we alsohave a new special test run on Chrome Headless with document.documentMode
set to 11 to force all those workarounds to be applied in Chrome & make sure
tests still pass.
Edit:
Fixes gh-4386
Checklist
If needed, a docs issue/PR was created at https://github.com/jquery/api.jquery.com