Skip to content
This repository has been archived by the owner on Mar 13, 2018. It is now read-only.

Fixes for IE #47

Merged
merged 1 commit into from
Jan 31, 2014
Merged

Fixes for IE #47

merged 1 commit into from
Jan 31, 2014

Conversation

dfreedm
Copy link
Contributor

@dfreedm dfreedm commented Jan 31, 2014

add MutationObserver polyfill to loader

Add msMatchesSelector to matches impl check

Fix propertyDescriptor for _currentScript

Polyfill document.baseURI for IE

Remove writable, IE doesn't like it

Only need to define baseURI on real document, don't need to keep the prop descriptor around

Add heuristic to fake load event for IE

Spec says that "load" must always be fired on style element, but IE fails to do so if its resources are either fully
text, or the @imports have already been processed asynchornously.

http://www.whatwg.org/specs/web-apps/current-work/multipage/semantics.html#the-style-element

add MutationObserver and WeakMap to karma serve list

@ghost ghost assigned sorvell Jan 31, 2014
} else if (elt.sheet) {
fakeLoad = true;
var csr = elt.sheet.cssRules;
var len = csr.length || 0;
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This line is weird, probably should be len = csr ? csr.length : 0

Add msMatchesSelector to matches impl check

Fix propertyDescriptor for _currentScript

Polyfill document.baseURI for IE

Remove writable, IE doesn't like it

Only need to define baseURI on real document, don't need to keep the prop descriptor around

Add heuristic to fake load event for IE

Spec says that "load" must always be fired on style element, but IE fails to do so if its resources are either fully
text, or the @imports have already been processed asynchornously.

http://www.whatwg.org/specs/web-apps/current-work/multipage/semantics.html#the-style-element

add MutationObserver and WeakMap to karma serve list

Don't try to access CSSRules length if it doesn't exist

If we add event listeners first, don't need to call done explicitly
@sorvell
Copy link
Contributor

sorvell commented Jan 31, 2014

LGTM

sorvell pushed a commit that referenced this pull request Jan 31, 2014
@sorvell sorvell merged commit 38c3371 into master Jan 31, 2014
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants