Mathias Bynens

About me

My name’s Mathias Bynens, and I’m a freelance web developer from Belgium. I collaborate on open-source projects such as jsPerf and HTML5 Boilerplate. If that sounds like fun to you, you should follow me on Twitter.

Latest notes

JavaScript’s internal character encoding: UCS-2 or UTF-16?

Does JavaScript use UCS-2 or UTF-16 encoding? Since I couldn’t find a definitive answer to this question anywhere, I decided to look into it. The answer depends on what you’re referring to: the JavaScript engine, or JavaScript at the language level.

Continue reading “JavaScript’s internal character encoding: UCS-2 or UTF-16?”…

JavaScript character escape sequences

Having recently written about character references in HTML, I figured it would be interesting to look into JavaScript character escapes as well.

Continue reading “JavaScript character escape sequences”…

The smallest possible valid (X)HTML documents

I thought it would be fun to document the smallest possible valid HTML documents for each version, so here goes :)

Continue reading “The smallest possible valid (X)HTML documents”…

Ambiguous ampersands

In this post, we’ll take a closer look at what happens if there’s an unencoded ampersand that’s not part of a character reference in your HTML code. Is it valid? Is it invalid? And what do “ambiguous ampersands” have to do with all this?

Continue reading “Ambiguous ampersands”…

JavaScript foo.prototype.bar notation

As a follow-up to the post documenting a few popular HTML element + attribute notations, here’s a similar one about JavaScript.

Continue reading “JavaScript foo.prototype.bar notation”…

Older notes

Browse the archive.