Better support for 'attribute X not allowed on element Y at this point' for particularly messed up values of X