Mathias Bynens
Mathias Bynens
To make it easy to test as many jsPerf features as possible, the database dump should contain a few test cases using sync/async tests + comments.
This would make it easier to test `server/web/test/*`. `pages`: ``` sql INSERT INTO `pages` (`id`, `slug`, `revision`, `browserscopeID`, `title`, `info`, `setup`, `teardown`, `initHTML`, `visible`, `author`, `authorEmail`, `authorURL`, `hits`, `ip`, `published`,...
E.g. `_.unescapeHTML('𝌆')` returns an incorrect result. So does `_.unescapeHTML('�')`. You could [use `he.decode()` for this](http://mths.be/he). Something like: ``` js _.unescapeHTML = require('he').decode; ```
For example: ``` js // To see which symbols are being used here, check: // http://mothereff.in/js-escapes#1ma%C3%B1ana%20man%CC%83ana naiveReverse('mañana mañana'); // → 'anãnam anañam' // Wait, so now the tilde is applied...
Input: ``` css x { font-family: "Comic Sans MS"; } ``` Current output: ``` css x{font-family:"Comic Sans MS"} ``` It could be just: ``` css x{font-family:Comic Sans MS} ``` See...
This may not be worth it, but here goes… E.g. `…` → U+0085 in XHTML, while in HTML it’s U+2026. http://www.w3.org/TR/xml/#d0e3895 Entities for these symbols are allowed in XML: http://www.w3.org/TR/xml/#NT-Char
…once https://github.com/whatwg/html/issues/326#issuecomment-158061393 is resolved.
See https://github.com/whatwg/html/issues/1257: > `&aaa;` or `` should be parse errors
Like https://github.com/mathiasbynens/swapcase/blob/8ded201ff6456e72192dd39e6b3e8260ea6762db/scripts/swap-map.js#L46-L53 — it’s much nicer, and it avoids the additional `process-data.js` step by just making it part of `export-data.js`.
- [Markus Kuhn’s UTF-8 decoder stress test](http://www.cl.cam.ac.uk/~mgk25/ucs/examples/UTF-8-test.txt) - http://www.cl.cam.ac.uk/~mgk25/ucs/examples/quickbrown.txt - … - See http://stackoverflow.com/q/1319022/96656 for some more examples. Note that some of the things mentioned there are explicitly allowed by...