Some applications or libraries might dynamically create DOM elements, for which the current solution does not cater for.
(e.g. some versions of ExtJS create a FORM element inside an IFRAME to handle file uploads
This specific scenario could be solved by creating a MutationObserver, then inject the tokens to the newly created elements if applicable. Adding such an observer/listener might have a significant impact on the performance, so this should be made configurable through the properties file.