]> source.dussan.org Git - jquery.git/commit
Core: rnotwhite -> rhtmlnotwhite and jQuery.trim -> stripAndCollapse
authorTimmy Willison <4timmywil@gmail.com>
Mon, 12 Sep 2016 16:32:02 +0000 (12:32 -0400)
committerTimmy Willison <4timmywil@gmail.com>
Thu, 15 Sep 2016 14:40:27 +0000 (10:40 -0400)
commit3bbcce68d7b8b8a7a2164a0f7a280ae9daf70b5c
treea65aefeef8aa62ff092254dcd5b1f2c256dc82ea
parent2d4f53416e5f74fa98e0c1d66b6f3c285a12f0ce
Core: rnotwhite -> rhtmlnotwhite and jQuery.trim -> stripAndCollapse

- Renames and changes rnotwhite to focus on HTML whitespace chars
- Change internal use of jQuery.trim to more accurate strip and collapse
- Adds tests to ensure HTML space characters are retained where valid
- Doesn't add tests where the difference is inconsequential and
  existing tests are adequate.

Fixes gh-3003
Fixes gh-3072
Close gh-3316
15 files changed:
src/ajax.js
src/ajax/load.js
src/attributes/attr.js
src/attributes/classes.js
src/attributes/val.js
src/callbacks.js
src/core/stripAndCollapse.js [new file with mode: 0644]
src/data/Data.js
src/effects.js
src/event.js
src/var/rnothtmlwhite.js [new file with mode: 0644]
src/var/rnotwhite.js [deleted file]
test/data/test3.html
test/unit/ajax.js
test/unit/attributes.js