Skip to content
This repository has been archived by the owner on Dec 22, 2023. It is now read-only.

Fill in key name with boolean attribute #38

Merged
merged 1 commit into from
Sep 23, 2016

Conversation

kevin940726
Copy link
Contributor

Currently if we need to parse the boolean attributes, we have to specify values of them with the attribute name.

<input required="required" />
// compiles to...
<input required />

In other words, this won't work...

<input required />
// compiles to...
<input />

I added a very simple logic to auto fill in the key name of the attribute to the value if the value is empty.

<input required />
// compiles to...
<input required="" />

@coveralls
Copy link

coveralls commented Jun 14, 2016

Coverage Status

Coverage remained the same at 100.0% when pulling a423b83 on kevin940726:master into f9f4cca on mikenikles:master.

Copy link
Collaborator

@aknuds1 aknuds1 left a comment

Choose a reason for hiding this comment

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

Looks good to me.

@aknuds1 aknuds1 merged commit 5f2ed66 into mikenikles:master Sep 23, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
3 participants