mirror of
https://github.com/jquery/jquery.git
synced 2024-11-23 02:54:22 +00:00
Docs: Update links to HTML spec for stripAndCollapse (#3594)
This commit is contained in:
parent
c1c549793a
commit
e1b1b2d7fe
@ -4,7 +4,7 @@ define( [
|
|||||||
"use strict";
|
"use strict";
|
||||||
|
|
||||||
// Strip and collapse whitespace according to HTML spec
|
// Strip and collapse whitespace according to HTML spec
|
||||||
// https://html.spec.whatwg.org/multipage/infrastructure.html#strip-and-collapse-whitespace
|
// https://infra.spec.whatwg.org/#strip-and-collapse-ascii-whitespace
|
||||||
function stripAndCollapse( value ) {
|
function stripAndCollapse( value ) {
|
||||||
var tokens = value.match( rnothtmlwhite ) || [];
|
var tokens = value.match( rnothtmlwhite ) || [];
|
||||||
return tokens.join( " " );
|
return tokens.join( " " );
|
||||||
|
@ -3,6 +3,6 @@ define( function() {
|
|||||||
|
|
||||||
// Only count HTML whitespace
|
// Only count HTML whitespace
|
||||||
// Other whitespace should count in values
|
// Other whitespace should count in values
|
||||||
// https://html.spec.whatwg.org/multipage/infrastructure.html#space-character
|
// https://infra.spec.whatwg.org/#ascii-whitespace
|
||||||
return ( /[^\x20\t\r\n\f]+/g );
|
return ( /[^\x20\t\r\n\f]+/g );
|
||||||
} );
|
} );
|
||||||
|
Loading…
Reference in New Issue
Block a user