Actually this is correct the nec does not mandate that the switch must be on the doorknob side of the swinging door per se just that a switched outlet ie.
Nec light switch to close to shower door.
A surface mounted switch or circuit breaker in a damp or wet location shall be enclosed in a weatherproof enclosure or cabinet that shall comply with 312 2.
A light switch is a switch most commonly used to operate electric lights permanently connected equipment or electrical outlets.
2008 national electrical code article 404 switches 404 4 damp or wet locations.
Switches shall not be installed within wet locations in tub or shower spaces unless installed as part of a listed tub or shower assembly.
If the bathroom is small and there are limited locations for light switches or the light switch will be place near the opening to the bathtub or shower then the circuit will be required to be protected by gfci.
The nec does not indicate that a switch.
Please note that the definition of a dry location states that the location may be temporary subjected to wetness or dampness.
As designers and installers of bathtub and shower areas continue to create new and dynamic designs for bathrooms the nec will continue to apply necessary safety requirements for these areas.
404 4 c does not allow switches within the shower or bath space unless the switch is part of a listed assembly.
Ec ode is a staff engineering associate at underwriters laboratories inc in research triangle park n c.
A flush mounted switch or circuit breaker in a damp or wet location shall be equipped with a weatherproof cover.
The switch location in the drawing would be considered a dry location.
My personal recommendation if you d like to put it as close as possible is to place it where you feel it s not likely to receive shower spray but again according to the code you could place it 1 16 away if you wanted.