if not html5mode then set the hash, not the full state