Skip to content
This repository was archived by the owner on Dec 12, 2025. It is now read-only.

Fix IE 8 bug with insertBefore. - #175

Merged
rviscomi merged 1 commit into
youtube:masterfrom
rviscomi:ie8fix
Nov 24, 2014
Merged

Fix IE 8 bug with insertBefore.#175
rviscomi merged 1 commit into
youtube:masterfrom
rviscomi:ie8fix

Conversation

@rviscomi

Copy link
Copy Markdown
Member

If the second argument is undefined, IE 8 throws an "Invalid argument" exception. Instead, use appendChild.

If the second argument is undefined, IE 8 throws an "Invalid argument" exception. Instead, use appendChild.
@rviscomi

Copy link
Copy Markdown
Member Author

Demo the bug in IE 8: http://jsfiddle.net/xt69g2ua/

@rviscomi rviscomi changed the title Fix IE 8 bug with insertAfter. Fix IE 8 bug with insertBefore. Nov 24, 2014
@nicksay

nicksay commented Nov 24, 2014

Copy link
Copy Markdown
Contributor

LGTM

rviscomi added a commit that referenced this pull request Nov 24, 2014
Fix IE 8 bug with insertBefore.
@rviscomi
rviscomi merged commit 27115be into youtube:master Nov 24, 2014
@rviscomi
rviscomi deleted the ie8fix branch December 2, 2014 21:20
@nicksay nicksay added this to the SPF 20 (v2.0.1) milestone Feb 13, 2015
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