ensure multiple attributes work at the same time as attrs w/ square brackets
This commit is contained in:
parent
c79b4545c2
commit
15373057df
1 changed files with 2 additions and 1 deletions
|
|
@ -52,9 +52,10 @@ o.spec("hyperscript", function() {
|
|||
o(vnode.attrs.a).equals("b")
|
||||
})
|
||||
o("handles attr w/ quoted square bracket", function() {
|
||||
var vnode = m("[a='[b]'].c")
|
||||
var vnode = m("[x][a='[b]'].c")
|
||||
|
||||
o(vnode.tag).equals("div")
|
||||
o(vnode.attrs.x).equals(true)
|
||||
o(vnode.attrs.a).equals("[b]")
|
||||
o(vnode.attrs.className).equals("c")
|
||||
})
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue