Every once in a while I stumble upon an API or browser setting that I can’t believe ever existed. Such examples can be seen in the numerous
String.prototype properties such as
italics, and even
blink, which wrap given string text in their representative HTML tags. Bizarre.
It was recently brought to my attention the
document.designMode API: an
on|off switch that acts almost like a
contentEdible attribute for the entire document. You can toggle
designMode by simply changing the setting:
document.designMode = "on";
designMode setting on, you can edit page text, drag and drop assets, and generally cause chaos on the page.