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

Create valid empty option in tpl_actiondropdown #2056

Merged
merged 1 commit into from Jul 26, 2017

Conversation

micgro42
Copy link
Collaborator

An option element without label-attribute and without text content is invalid HTML.

The HTML-spec specifies:

If the element has no label attribute and is not a child of a datalist element: Text that is not inter-element whitespace.

So a non-breaking space is valid solution.

The HTML-spec[0] specifies:

> If the element has no label attribute and is not a child of a datalist element: Text that is not inter-element whitespace.

So a non-breaking space is valid solution.

[0] https://html.spec.whatwg.org/multipage/form-elements.html#the-option-element
@micgro42 micgro42 changed the title Create valid empty options in tpl_actiondropdown Create valid empty option in tpl_actiondropdown Jul 26, 2017
@splitbrain splitbrain merged commit c6162b5 into master Jul 26, 2017
@splitbrain splitbrain deleted the validActionDropdown branch July 26, 2017 17:19
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.

None yet

2 participants