Parser changes to match coming update to the spec for the new ruby model

As per http://darobin.github.io/html-ruby/. This change is being landed in the W3C specification (within the days to come), apply with caution.