emmet-docs
emmet-docs copied to clipboard
HTML input arrays bug
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}">
You should use quotes in this case: input[name='foo[]']
Sound like a workaround. I can't see any purpose for parsing nested brackets here, so IMO it's a bug.