Preserving HTML DOM elements when restoring from webSQL.