Summary 291
enabling easier management of custom, user-defined attributes that are marked
with the special prefix data-*.
Our game incorporates the highly controversial hidden attribute, plus one of
the key features of HTML5: drag and drop. The draggable attribute, a handful of
events, and the DataTransfer interface enable not only dragging and dropping
elements within a browser, but also interaction with the underlying operating
system. The impressive example for reading EXIF information of digital images
uses this feature and introduces the FileAPI.
The final section of the chapter demonstrates that text content and even CSS
formats of an HTML5 page can be directly edited in the browser. To avoid spell-
ing errors during editing, the spellcheck attribute can be used to activate spell
checking in the browser, complete with a dictionary. Could HTML5 be on its way
to turning into a full-blown office package?