-
Improvement
-
Resolution: Unresolved
-
Minor
-
None
Sometimes it is helpful to add some javascript functionality in a FormValidation.xxxWithMarkup for example to allow a user to follow an ajax link to resolve and issue.
Currently it is only possible if the javascript is inlined in an elelement such as <a href="javascript: ...."> which is ugly and hard to write.
it would be more benificial if we could use the <script> tag directly in the HTML Markup.
Currently this is not possible as the FormValidation is displayed by core using innerHTML which does not execute scripts
https://html.spec.whatwg.org/#the-script-element:dom-document-write-2
Acceptance Criteria
- A FormValidation can contain and call javascript embedded inside a <script> tag that is part of the FormValidations markup
Note: it is acceptable that this may or may not be be a new method on FormValidation