aboutsummaryrefslogtreecommitdiff
path: root/site/docs/4.1/getting-started/javascript.md
diff options
context:
space:
mode:
authorJohann-S <[email protected]>2018-08-31 21:00:29 +0200
committerGitHub <[email protected]>2018-08-31 21:00:29 +0200
commita3e45d8ced63369ad6bd29ce45d919b77412a99b (patch)
tree12a4e8e14043646569f2898ca0b6f0d069aea6ee /site/docs/4.1/getting-started/javascript.md
parent54d86e6249d90fa8634acd3bc0b78556269edce5 (diff)
downloadbootstrap-a3e45d8ced63369ad6bd29ce45d919b77412a99b.tar.xz
bootstrap-a3e45d8ced63369ad6bd29ce45d919b77412a99b.zip
add information about valid selectors (#27137)
Diffstat (limited to 'site/docs/4.1/getting-started/javascript.md')
-rw-r--r--site/docs/4.1/getting-started/javascript.md6
1 files changed, 4 insertions, 2 deletions
diff --git a/site/docs/4.1/getting-started/javascript.md b/site/docs/4.1/getting-started/javascript.md
index 20500c2af..e9fcc5182 100644
--- a/site/docs/4.1/getting-started/javascript.md
+++ b/site/docs/4.1/getting-started/javascript.md
@@ -35,8 +35,10 @@ $(document).off('.alert.data-api')
{% endhighlight %}
{% capture callout %}
-##### Escaping selectors
-If you use special selectors, for example: `collapse:Example`, be sure to escape them, because they'll be passed through jQuery.
+## Selectors
+
+Currently to query DOM elements we use the native methods `querySelector` and `querySelectorAll` for performance reasons, so you have to use [valid selectors](https://www.w3.org/TR/CSS21/syndata.html#value-def-identifier).
+If you use special selectors, for example: `collapse:Example` be sure to escape them.
{% endcapture %}
{% include callout.html content=callout type="warning" %}