Don't collect ">" as the attribute value when the cursor is right before that character.

This fixes issue #3136.