From: Chris Rebert Date: Fri, 21 Aug 2015 05:05:55 +0000 (-0700) Subject: Modal docs: Add MDN autofocus docs link X-Git-Tag: v4.0.0-alpha.2~474 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=30cc2c4815fd8d8e9b5497de0c4c5fd666092b1d;p=thirdparty%2Fbootstrap.git Modal docs: Add MDN autofocus docs link --- diff --git a/docs/components/modal.md b/docs/components/modal.md index 1e24baf5b5..2b28c19984 100644 --- a/docs/components/modal.md +++ b/docs/components/modal.md @@ -11,7 +11,7 @@ Modals are streamlined, but flexible, dialog prompts with the minimum required f * Will be replaced with the ToC, excluding the "Contents" header {:toc} -**Due to how HTML5 defines its semantics, the `autofocus` HTML attribute has no effect in Bootstrap modals.** To achieve the same effect, use some custom JavaScript: +**Due to how HTML5 defines its semantics, [the `autofocus` HTML attribute](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#attr-autofocus) has no effect in Bootstrap modals.** To achieve the same effect, use some custom JavaScript: {% highlight js %} $('#myModal').on('shown.bs.modal', function () {