Originally Posted by
moondog
You can transit without visa for up to 24 hours (i.e. can leave the airport).
All the Chinese embassy/consulate websites state you
cannot leave the airport with the 24-hour visa-free transit (not including Shanghai). Of course, I don't see how they can enforce it. Still, if something happens to the traveler outside the airport, there may be consequences.