1
0
Fork 0
mirror of synced 2025-04-03 21:23:35 +03:00
select2/tests
Kevin Brown 0da15aa586 Fixed option text encoding
This fixes an issue when using a `<select>` where the elements were
created with XHTML-encoded characters to prevent any injection, as
they would be double-encoded and display incorrectly.

When using a `<select>`, we can assume that the data has already
been encoded because any XSS will have already run before we get to
it.  Because of this, we can just use `.text()` instead of `.html()`
to avoid any issues.

This also includes a test to ensure that this does not become an
issue in the future.

This closes https://github.com/select2/select2/issues/3115.
2015-03-11 18:12:14 -04:00
..
a11y Clone the tabindex from the original select 2015-02-13 23:57:18 -05:00
data Fixed option text encoding 2015-03-11 18:12:14 -04:00
dropdown Combine tests into common files 2015-02-13 23:29:56 -05:00
options Fixed data-ajax-url fallback 2015-02-27 20:11:13 -05:00
selection Combine tests into common files 2015-02-13 23:29:56 -05:00
utils Combine tests into common files 2015-02-13 23:29:56 -05:00
vendor Added Utils.Decorate and tests 2014-10-21 21:43:56 -04:00
data.html Added tests for the <input /> element 2015-02-27 18:37:06 -05:00
dropdown.html Combine tests into common files 2015-02-13 23:29:56 -05:00
helpers.js Hook up with SauceLabs 2015-02-13 21:59:09 -05:00
options.html Combine tests into common files 2015-02-13 23:29:56 -05:00
selection.html Combine tests into common files 2015-02-13 23:29:56 -05:00
utils.html Combine tests into common files 2015-02-13 23:29:56 -05:00