-
Notifications
You must be signed in to change notification settings - Fork 789
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 mock-doc Node.contains implementation #3150
Merged
rwaskiewicz
merged 5 commits into
ionic-team:main
from
kevinleedrum:kevinleedrum-node-contains
Dec 3, 2021
Merged
Fix mock-doc Node.contains implementation #3150
rwaskiewicz
merged 5 commits into
ionic-team:main
from
kevinleedrum:kevinleedrum-node-contains
Dec 3, 2021
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
The `Node.contains` method should return `true` if the passed node is the parent/context node. [The wording in the spec](https://dom.spec.whatwg.org/#dom-node-contains) is that it should return `true` if the passed node is an "inclusive descendant", which differs from a regular "descendant" in that it includes the object itself (not just the child nodes).
splitinfinities
added
the
Resolution: Refine
This PR is marked for Jira refinement. We're not working on it - we're talking it through.
label
Dec 2, 2021
rwaskiewicz
suggested changes
Dec 3, 2021
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks! I had one small nitpick - but once that's resolved this should be good to go!
rwaskiewicz
added
the
Awaiting Reply
This PR or Issue needs a reply from the original reporter.
label
Dec 3, 2021
Co-authored-by: Ryan Waskiewicz <[email protected]>
rwaskiewicz
approved these changes
Dec 3, 2021
Merged! Thanks again! 🙏 |
ionitron-bot
bot
added
Reply Received
and removed
Awaiting Reply
This PR or Issue needs a reply from the original reporter.
labels
Dec 3, 2021
rwaskiewicz
added
Resolution: Shipped
and removed
Resolution: Refine
This PR is marked for Jira refinement. We're not working on it - we're talking it through.
labels
Dec 13, 2021
This fix has been included in the v2.12.0 release. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Pull request checklist
Please check if your PR fulfills the following requirements:
npm run build
) was run locally and any changes were pushednpm test
) were run locally and passednpm run test.karma.prod
) were run locally and passednpm run prettier
) was run locally and passedPull request type
Please check the type of change your PR introduces:
What is the current behavior?
GitHub Issue Number: #3149
What is the new behavior?
The
Node.contains
method should returntrue
if the passed node is the parent/context node. The wording in the spec is that it should returntrue
if the passed node is an "inclusive descendant", which differs from a regular "descendant" in that it includes the object itself (not just the child nodes).Does this introduce a breaking change?
Testing
Other information