From e1b1b2d7fe5aff907a9accf59910bc3b7e4d1dec Mon Sep 17 00:00:00 2001 From: Boom Lee Date: Wed, 29 Mar 2017 22:42:13 +0800 Subject: [PATCH] Docs: Update links to HTML spec for stripAndCollapse (#3594) --- src/core/stripAndCollapse.js | 2 +- src/var/rnothtmlwhite.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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 ); } );