From: Boom Lee Date: Wed, 29 Mar 2017 14:42:13 +0000 (+0800) Subject: Docs: Update links to HTML spec for stripAndCollapse (#3594) X-Git-Tag: 3.3.0~91 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=e1b1b2d7fe5aff907a9accf59910bc3b7e4d1dec;p=jquery.git Docs: Update links to HTML spec for stripAndCollapse (#3594) --- diff --git a/src/core/stripAndCollapse.js b/src/core/stripAndCollapse.js index ccad6602e..2b63820da 100644 --- a/src/core/stripAndCollapse.js +++ b/src/core/stripAndCollapse.js @@ -4,7 +4,7 @@ define( [ "use strict"; // 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 ) { var tokens = value.match( rnothtmlwhite ) || []; return tokens.join( " " ); diff --git a/src/var/rnothtmlwhite.js b/src/var/rnothtmlwhite.js index 30604db4f..29eebf287 100644 --- a/src/var/rnothtmlwhite.js +++ b/src/var/rnothtmlwhite.js @@ -3,6 +3,6 @@ define( function() { // Only count HTML whitespace // 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 ); } );