When LockerService is enabled, execute the following code:
var test = document.createElement('script'); test.setAttribute('data-field-test', 'myTest'); console.log(test.dataset);
Try the same with a
div element instead of a
script tag. It works.
Try the same without LockerService enabled, it works.
I know you cannot inject script in LockerService to be executed, but at least, we should be able to use the script tag like any other DOM Element.
Any one have any workaround?