I can confirm that he does this - running your code in the console on this page works fine.
Therefore, I assume that you are in Quirks mode, and therefore the browser pretends not to know that it is compatible with the specified mode.
, <!DOCTYPE html> quirks.