Permalink
Browse files

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

  • Loading branch information...
teabyii authored and timmywil committed Mar 29, 2017
1 parent c1c5497 commit e1b1b2d7fe5aff907a9accf59910bc3b7e4d1dec
Showing with 2 additions and 2 deletions.
  1. +1 −1 src/core/stripAndCollapse.js
  2. +1 −1 src/var/rnothtmlwhite.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( " " );
@@ -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 );
} );

0 comments on commit e1b1b2d

Please sign in to comment.