emmet-docs icon indicating copy to clipboard operation
emmet-docs copied to clipboard

HTML input arrays bug

Open Arrvi opened this issue 11 years ago • 2 comments

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}">

Arrvi avatar Jun 19 '13 15:06 Arrvi

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

sergeche avatar Jun 19 '13 15:06 sergeche

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

Arrvi avatar Jun 19 '13 17:06 Arrvi