Fix dynamic fields elements for IE11 #5052
Because IE11 does not support the `<template>` tag very well, add functionality to the dynamic fields component to match also `<script type="text/template">` tags as an alternative. The views need to use this type of templates in order for them to work properly on IE11. Also, this types of templates cannot have child templates meaning that the wrapper element needs to map the child template with the `data-template` attribute.
With the updated dynamic fields component, it is now possible to mark the dynamic fields markup with `<script type="text/template">`. This makes them compatible with IE11. Also note that this types of templates cannot have any child templates which is why the child templates have been moved outside of the parent template and mapped with the `data-template` attribute on the dynamic fields wrapper element.
@ahukkanen This PR has added another problem.
Thanks in advance