Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

davidtaylorhq
Copy link
Member

This API is not used by any known themes/plugins, and is problematic for a few reasons

  • It doesn't work on modern plugin connectors which have no wrapper element

  • Making modifications to Ember-rendered DOM elements can lead to catastrophic and surprising errors

  • It doesn't re-run when arguments to a plugin outlet change

This commit adds the deprecation notice, and refactors the tests so that they do not rely on any real core plugin outlets

This API is not used by any known themes/plugins, and is problematic for a few reasons

- It doesn't work on modern plugin connectors which have no wrapper element

- Making modifications to Ember-rendered DOM elements can lead to catastrophic and surprising errors

- It doesn't re-run when arguments to a plugin outlet change

This commit adds the deprecation notice, and refactors the tests so that they do not rely on any real core plugin outlets
qunit-dom uses getComputedStyle, which varies based on other CSS and potentially by browser. We want to test the value of the style attribute on the element.
@davidtaylorhq davidtaylorhq merged commit b7cafdc into main Oct 30, 2023
@davidtaylorhq davidtaylorhq deleted the deprecate-outlet-decorators branch October 30, 2023 11:07
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.

2 participants