NULLs in entities in Firefox

HTML5 decided to introduce a load of new entities, I dunno why maybe they thought it wasn’t hard enough to protect against the original ones we had already. Anyway Firefox has a bug or “feature” that allows NULLS inside the entities. I tweeted it but if I don’t post it here it will probably be lost in a sea of tweets. You can place NULLs before the “&” or before the “;” which allows you to construct a pretty weird entity.


These obviously work inside a anchor href and I think in addition FF requires the HTML5 doctype.

Comments are closed :( too much spam. If you want to contact me about any article please email or tweet me.