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

Produce a real false value instead of "false". Quick n dirty hack to make it work #17

Merged
merged 3 commits into from
Jan 31, 2018

Conversation

jayrbolton
Copy link
Contributor

No description provided.

@jayrbolton
Copy link
Contributor Author

Related issue: #14

create.js Outdated

// Directive attributes
if (name.indexOf(directive) === 0) {
if (name[0] === directive) {
Copy link
Collaborator

Choose a reason for hiding this comment

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

A directive could be more than one char which is why I went the indexOf route. Other method could be to just hardcode the char instead of option.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Oh yeah my bad, I missed that. this change didn't belong on this branch anyway

@jamen jamen merged commit 114f98f into mreinstein:master Jan 31, 2018
@@ -31,6 +31,9 @@ function create (modules, options) {
var data = {}
for (var i = 0, max = names.length; max > i; i++) {
var name = names[i]
if (input[name] === 'false') {
Copy link
Owner

Choose a reason for hiding this comment

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

I believe this has broken the case where we want explicit "false" values for attributes. e.g.,

html`<img src="..."  draggable="false" />`

we end up throwing out the false attribute. This is what gets rendered:

<img src="..." />

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.

3 participants