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