#708, #899: Allow to set locale via HTML attribute