Docs: Update links to HTML spec for stripAndCollapse (#3594)

This commit is contained in:
Boom Lee 2017-03-29 22:42:13 +08:00 committed by Timmy Willison
parent c1c549793a
commit e1b1b2d7fe
2 changed files with 2 additions and 2 deletions

View 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( " " );

View 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 );
} );