No, no...LocalStorage is built into HTML5. Just as much a part of the system as are cookies.
But now comes the question: If adding a DOCTYPE screws up your formatting, how will you then use <!DOCTYPE html> to specify HTML5??
An optimist sees the glass as half full.
A pessimist sees the glass as half empty.
A realist drinks it no matter how much there is.