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

lib/onoff: Don't write boolean attribute values into DOM #10007

Merged

Conversation

mvollmer
Copy link
Member

@mvollmer mvollmer commented Sep 6, 2018

They must be strings. The "enabled" attribute does not seem to have
any effect anyway, the actual disabling happens with the
elements.

They must be strings.  The "enabled" attribute does not seem to have
any effect anyway, the actual disabling happens with the <label>
elements.

Closes cockpit-project#10007
@mvollmer mvollmer force-pushed the lib-onoff-no-DOM-booleans branch from c59faa8 to fc6fe3e Compare September 6, 2018 11:28
@mareklibra mareklibra mentioned this pull request Sep 6, 2018
44 tasks
Copy link
Member

@martinpitt martinpitt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Makes sense. Tests then shouldn't look for this enabled attribute, but check the disabled standard one. We'll see if anything relies on this :)

@martinpitt martinpitt merged commit a82f25c into cockpit-project:master Sep 6, 2018
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.

2 participants