dfilatov / vidom

Library to build UI based on virtual DOM
MIT License
415 stars 16 forks source link

not working with optGroup #146

Closed ghost closed 8 years ago

ghost commented 8 years ago

not working with optGroup property. And no tests for this either

dfilatov commented 8 years ago

Please, attach non-working code because the following code works as expected:

mountToDom(
    rootDomElem,
    node('select').children([
        node('optgroup').attrs({ label : 'optgroup1' }).children([
            node('option').children('o1'),
            node('option').children('o2')
        ]),
        node('optgroup').attrs({ label : 'optgroup2' }).children([
            node('option').children('o3'),
            node('option').children('o4')
        ])
    ]));