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

HTML input arrays bug #25

Open
Arrvi opened this issue Jun 19, 2013 · 2 comments
Open

HTML input arrays bug #25

Arrvi opened this issue Jun 19, 2013 · 2 comments

Comments

@Arrvi
Copy link

Arrvi commented Jun 19, 2013

I found little issue with input arrays in HTML, ex. <input name="foo[]">

Emmet skips closing bracket in attributes (in this case - name):
input[name=foo[]] =>
<input type="text" name="foo[">

input[name=foo[0]] =>
<input type="text" name="foo[0">

input[name=foo[{id}]][value={id}] =>
<input type="text" name="foo[{id}" value="{id}">

@sergeche
Copy link
Member

You should use quotes in this case: input[name='foo[]']

@Arrvi
Copy link
Author

Arrvi commented Jun 19, 2013

Sound like a workaround. I can't see any purpose for parsing nested brackets here, so IMO it's a bug.

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

No branches or pull requests

2 participants