pureqml/qmlcore

htmlTag always returns 'div'

madagon opened this issue · 1 comments

Setting htmlTag on a component has no effect on its construction. Within the Item.qml' constructor, calling htmlTag() always returns div. Apparently, the properties are not processed and attached to this before the instantiation.

All web controls are affected.
A temporary workaround would be overriding the getTag() function in each component.

Script {
    source: 'http://cdn...';

    function getTag() {
        return 'script';
    }
}

sorry, unfortunate refactoring, this is impossible to do without "static" prototype properties.
Should be fixed after the following reverts
48c15ab
39a28c7