When I create a simple HTML Element,
var div = document.createElement('div');
I am unable to set the type
attribute.
div.setAttribute('type', 'whatever');
Will LockerService someday support that?
type
isn't a standard attribute on HTMLDivElement. LockerService will ignore these non-standard attribute names, with some exceptions. Anything with a dash in the name, for example, is allowed to accommodate data-* and 3rd party attributes like ng-*.
onclick
,onchange
WARNING: SecureElement: [object HTMLDivElement]{ key: {"namespace":"c"} } does not allow getting/setting the type attribute, ignoring!
. I know why it's not working, LockerService code is not that huge, but they don't accept any PRs so I cannot fix it myself.