Allow javascript in FormValidation markup

This issue is archived. You can view it, but you can't modify it. Learn more

XMLWordPrintable

      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

            Assignee:
            Unassigned
            Reporter:
            James Nord
            Archiver:
            Jenkins Service Account

              Created:
              Updated:
              Archived: