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

Fix boolean attributes as per HTML5 spec #1005

Merged
merged 1 commit into from
Feb 4, 2014
Merged

Conversation

jjt
Copy link

@jjt jjt commented Jan 31, 2014

No description provided.

@jjt
Copy link
Author

jjt commented Jan 31, 2014

It was simpler to just start a new branch than to fix my commit mangling.

@@ -95,6 +95,9 @@ var DOMPropertyOperations = {
return '';
}
var attributeName = DOMProperty.getAttributeName[name];
if (value && DOMProperty.hasBooleanValue[name]) {
Copy link
Member

Choose a reason for hiding this comment

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

We've already determined that value is truthy (see shouldIgnoreValue) so I think we can get rid of that check.

Copy link
Author

Choose a reason for hiding this comment

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

@zpao Right, that makes sense. Fixed.

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