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

BookInstance - improve selected option code #238

Merged
merged 1 commit into from
Oct 30, 2023

Conversation

hamishwillee
Copy link
Collaborator

This improves the pug form for the BookInstance update template so that the selected book has <option selected> rather than <option selected="selected">. NOte that both are valid, and both work. It's just that the changed version is more familiar and easier to read.

note that setting the value to false is somewhat arbitrary - any value other than selected or the null string is taken as false.

This is a response to mdn/content#29859

@hamishwillee hamishwillee merged commit d547160 into mdn:main Oct 30, 2023
2 checks passed
@hamishwillee hamishwillee deleted the select_option_empty branch October 30, 2023 00:16
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.

1 participant