Skip to content

Conversation

@maxjacobson
Copy link

In our code base, we merged in some code that looked like this:

<input type=" button " />

Which ultimately did not work. The browser did not understand this. We wondered if ERB Lint could have caught it. And now here we are.

What do we think?

@maxjacobson
Copy link
Author

I have signed the CLA!

In our code base, we merged in some code that looked like this:

```
<input type=" button " />
```

Which ultimately did not work. The browser did not understand this. We
wondered if ERB Lint could have caught it. And now here we are.

What do we think?
@maxjacobson
Copy link
Author

Hello!

Not sure if anyone has had a chance to look at this one yet. Just commenting with an FYI that I've pushed up another commit, which fixed a bug in the original implementation. Originally this solution would crash on values that had embedded ruby:

<div class="<%= foo %>">
</div>

Now it is able to run and trim all of these extraneous spaces in our rails app without issue.

I'd be happy to answer any questions or take any feedback y'all may have. Thanks for considering this change.

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.

1 participant