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

Use real DOM for testing (2 of 2). #242

Closed
wants to merge 1 commit into from

Conversation

rviscomi
Copy link
Member

@rviscomi rviscomi commented Jan 7, 2015

Resources are created in an iframe using real DOM elements as opposed to FakeElements.
el.href would return the canonical URL ("file://foo.bar") so we use el.getAttribute('href') instead ("//foo.bar").

Closes #178

Resources are created in an iframe using real DOM elements as opposed to FakeElements.
el.href would return the canonical URL ("file://foo.bar") so we use el.getAttribute('href') instead ("//foo.bar").

Closes youtube#178
// Test resources in an iframe. Use that as the document for all tests.
iframe = document.createElement('iframe');
document.body.appendChild(iframe);
fakes.doc = iframe.contentWindow.document;
Copy link
Member Author

Choose a reason for hiding this comment

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

IE stumbles here. Working on another approach.

@rviscomi
Copy link
Member Author

I've been pulled away from this and will need more time to resolve the IE problem. Closing this PR for now and will resubmit once a fix is ready.

@rviscomi rviscomi closed this Feb 17, 2015
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.

Use real DOM for testing
1 participant