Skip to content

Loading…

Add U+000C FORM FEED as a space character as per the HTML spec #103

Closed
wants to merge 1 commit into from

2 participants

@mathiasbynens

See http://whatwg.org/html/common-microsyntaxes.html#space-character:

The space characters, for the purposes of this specification, are U+0020 SPACE, U+0009 CHARACTER TABULATION (tab), U+000A LINE FEED (LF), U+000C FORM FEED (FF), and U+000D CARRIAGE RETURN (CR).

\f is U+000C FORM FEED.

@timmywil
jQuery Foundation member

Mathias, you are one of a kind. <3

@timmywil
jQuery Foundation member
@timmywil timmywil closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
This page is out of date. Refresh to see the latest.
Showing with 1 addition and 1 deletion.
  1. +1 −1 sizzle.js
View
2 sizzle.js
@@ -524,7 +524,7 @@ var Expr = Sizzle.selectors = {
for ( var i = 0, elem; (elem = curLoop[i]) != null; i++ ) {
if ( elem ) {
- if ( not ^ (elem.className && (" " + elem.className + " ").replace(/[\t\n\r]/g, " ").indexOf(match) >= 0) ) {
+ if ( not ^ (elem.className && (" " + elem.className + " ").replace(/[\t\n\f\r]/g, " ").indexOf(match) >= 0) ) {
if ( !inplace ) {
result.push( elem );
}
Something went wrong with that request. Please try again.