Skip to content

Don't envelop fragments in documents. #20

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

Merged
merged 1 commit into from
Sep 29, 2014
Merged

Conversation

kaspth
Copy link
Contributor

@kaspth kaspth commented Sep 26, 2014

Prevents a body tag from being matched in an empty document.

This changes the expectations for document_root_element so we need to update Rails as well. I'll submit a separate PR once this is merged.

I'm pretty tired of issues like this because it's so hard to figure out if the node being searched from is included in the search or not. We're probably going to have more issues because of that behavior 😢

Closes #19

Prevents a body tag from being matched in an empty document.

Closes #19
@kaspth
Copy link
Contributor Author

kaspth commented Sep 29, 2014

@rafaelfranca :shipit:?

rafaelfranca added a commit that referenced this pull request Sep 29, 2014
Don't envelop fragments in documents.
@rafaelfranca rafaelfranca merged commit 2c20723 into master Sep 29, 2014
@rafaelfranca rafaelfranca deleted the body-refute-fix branch September 29, 2014 18:41
kaspth added a commit to kaspth/rails that referenced this pull request Sep 29, 2014
This is to match the changes in Rails Dom Testing rails/rails-dom-testing#20.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

Can't refute presence of body
2 participants