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(flatten-tree): do not call deprecated getDistributedNodes #1577

Merged
merged 1 commit into from
May 20, 2019

Conversation

AdnoC
Copy link
Contributor

@AdnoC AdnoC commented May 17, 2019

The <content> tag is deprecated and the getDistributedNodes() method on it's element is also deprecated. We used to unconditionally call it, but the method was removed in Firefox, and could potentially be removed from an upcoming version of Chrome.

A <content> tag was replaced by <slot> in shadow DOM v1 and behaves like a <div> now. So it is safe to treat it like any other node.

Closes issue: #1576

Reviewer checks

Required fields, to be filled out by PR reviewer(s)

  • Follows the commit message policy, appropriate for next version
  • Has documentation updated, a DU ticket, or requires no documentation change
  • Includes new tests, or was unnecessary
  • Code is reviewed for security by: Steve

@straker straker changed the title fix(flatten-tree): do not call deprecated getDistributedNodes if it d… fix(flatten-tree): do not call deprecated getDistributedNodes May 20, 2019
@straker straker merged commit 93d59f4 into develop May 20, 2019
@straker straker deleted the fix-content-getdistributednodes branch May 20, 2019 15:39
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