]> source.dussan.org Git - jquery.git/commitdiff
Docs: Update links to HTML spec for stripAndCollapse (#3594) 3638/head
authorBoom Lee <teabyii@gmail.com>
Wed, 29 Mar 2017 14:42:13 +0000 (22:42 +0800)
committerTimmy Willison <4timmywil@gmail.com>
Wed, 29 Mar 2017 14:42:13 +0000 (10:42 -0400)
src/core/stripAndCollapse.js
src/var/rnothtmlwhite.js

index ccad6602ecb5167eb6f459427051f5ce0edf1c79..2b63820dadfaeb8a20b0a1fa92fe35313ca69128 100644 (file)
@@ -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( " " );
index 30604db4f609c13945ffaa2033975a82a7beed64..29eebf287e2af0725daa5154c0f666aab8223d3e 100644 (file)
@@ -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 );
 } );