Skip to content
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

Fix "elem.parentNode is null" with Flashblock #2063

Merged
merged 2 commits into from Sep 2, 2016

Conversation

jdelStrother
Copy link
Contributor

The Flashblock Firefox extension seems to take the questionable approach of removing video nodes immediately as they're inserted into the page, which causes an "elem.parentNode is null" error. What do you think to this fix?

@patrickkettner
Copy link
Member

hey @jdelStrother !
That looks great, could you change it to have smoe curly braces and break it up over a couple lines?

thanks!

@jdelStrother
Copy link
Contributor Author

jdelStrother commented Aug 31, 2016

Sure, I'll do so tomorrow. (Though if that is the preferred style, shouldn't eslint specify "curly": "all" ? )

@ryanseddon
Copy link
Member

@jdelStrother good idea want to sneak in the eslint change in this PR and see if our linting still passes if not we can do a follow up PR.

@jdelStrother
Copy link
Contributor Author

Done. Looks like the rest of the code is already using braces, so I've included the .eslintrc change in this PR. I can break it out if it proves contentious.

@patrickkettner
Copy link
Member

ah man, perfect use of commits :]

@patrickkettner patrickkettner merged commit 423b121 into Modernizr:master Sep 2, 2016
@patrickkettner
Copy link
Member

thanks so much!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants