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

feat: shim DOMTokenList for class and part properties on HTMLElement #6522

Merged
merged 5 commits into from
Nov 18, 2022

Conversation

EisenbergEffect
Copy link
Contributor

Pull Request

📖 Description

This PR adds classList, className, and part properties to the HTMLElement shim for SSR.

🎫 Issues

👩‍💻 Reviewer Notes

The main part of this PR is the introduction of an implementation of DOMTokenList which is then plugged into HTMLElement where appropriate.

📑 Test Plan

Tests for DOMTokenList were added. Existing tests continue to pass.

✅ Checklist

General

  • I have included a change request file using $ yarn change
  • I have added tests for my changes.
  • I have tested my changes.
  • I have updated the project documentation to reflect my changes.
  • I have read the CONTRIBUTING documentation and followed the standards for this project.

⏭ Next Steps

Explore whether any other shims are needed to enable foundation components to function out of the box.

@EisenbergEffect EisenbergEffect merged commit 22f68aa into master Nov 18, 2022
@EisenbergEffect EisenbergEffect deleted the users/eisenbergeffect/dom-token-list-shim branch November 18, 2022 16:58
janechu pushed a commit that referenced this pull request Jun 10, 2024
…6522)

* feat: shim DOMTokenList for class and part properties on HTMLElement

* test: add for DOMTokenList

* Change files

* chore: correct change file

Co-authored-by: EisenbergEffect <roeisenb@microsoft.com>
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.

fix: FAST SSR DOM Shim does not support rendering fast-foundation components
3 participants