Parser changes for the new ruby model

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