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

Prevent invalid empty id attributes. #4091

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

digitaldonkey
Copy link

No description provided.

@marcoliverteschke
Copy link

For context: this pops up when you send your actual DOM after JS has been evaluated through a validator instead of just the initial source returned from the server. This might happen, for instance, when your site gets audited for accessibility.

Having empty IDs in the ”offstage” slides invalidates the markup, because if an ID attribute is present, its value must not be empty.

@Ashwary-Jharbade
Copy link

Ashwary-Jharbade commented May 23, 2023

Hi @kenwheeler ,
Could you please review this PR? Setting id to empty will cause cloned elements to lose CSS properties as well if applied via id. Please share your thoughts if you think changes will have any negative impact.

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