allow compat-mode to be toggled in document