That's the American style, and it's stupid.
“The best,” replied Severus Snape. -- Harry Potter And The Deathly Hallows, p.1
You put the punctuation where it makes sense. If it belongs to the quote, it goes inside. If it belongs to the sentence, it goes outside.