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

createElement, appendChild should refer to "root" node's "ownerDocument" #925

Closed

Conversation

michaelsbradleyjr
Copy link

Related to #555.

For better browser support when the HTML reporter is referring to a root node that is in another document object, createElement and appendChild operations should be done with respect to the root node's ownerDocument.

By better browser support I mean that at least Firefox was throwing exceptions (and not running tests) when the root node was in a different document context, i.e. the HTML reporter was running in an iframe.

All tests passing after changes were made and mocha.js was rebuilt with make all.

@travisjeffery
Copy link
Contributor

holy there's a lot of changes here and they're out of date.

if you want to redo this pr with a minimal amount of changes that are fresh that'd be great.

@michaelsbradleyjr
Copy link
Author

Sorry, the branch got gummed up with a lot of other changes – originally it was focused only on the ownerDocument concerns, but then the pull request sat idle for so long that I forgot and merged the branch with some other stuff. At this point, I'm not actively using mocha, but I'll think a bit about resubmitting the pull request.

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.

3 participants