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: getComposedParent should not return slot nodes #438

Merged
merged 3 commits into from
Jul 16, 2017

Conversation

WilcoFiers
Copy link
Contributor

No description provided.

Copy link
Contributor

@dylanb dylanb left a comment

Choose a reason for hiding this comment

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

one comment is wrong but otherwise good

// NOTE: If the display of a slot element isn't 'contents',
// the slot shouldn't be ignored. Chrome does not support this (yet) so,
// we'll skip this part for now.
return getComposedParent(element.assignedSlot); // content of a shadow DOM slot
Copy link
Contributor

Choose a reason for hiding this comment

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

The comment should read parent of shadow DOM slot

# Conflicts:
#	Gruntfile.js
#	lib/commons/text/label.js
#	lib/core/utils/get-selector.js
#	lib/rules/color-contrast-matches.js
@WilcoFiers WilcoFiers merged commit 0478cbd into shadowDOM Jul 16, 2017
@marcysutton marcysutton deleted the fix/composed-parent-no-slot branch August 15, 2017 19:23
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.

2 participants