JavaScript regex whitespace characters

For Mozilla its;

 [ \f\n\r\t\v\u00A0\u2028\u2029]

(Ref)

For IE (JScript) its

[ \f\n\r\t\v] 

(Ref)


A simple test:

for(var i = 0; i < 1114111; i++) {
    if(String.fromCodePoint(i).replace(/\s+/, "") == "") console.log(i);
}

The char codes (Chrome):

9
10
11
12
13
32
160
5760
8192
8193
8194
8195
8196
8197
8198
8199
8200
8201
8202
8232
8233
8239
8287
12288
65279

HTML != Javascript. Javascript is completely literal, %20 is %20 and &nbsp; is a string of characters & n b s p and ;. For character classes I consider nearly every that is RegEx in perl to be applicable in JS (you can't do named groups etc).

http://www.regular-expressions.info/javascript.html is the refernece I use.