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.
I think you'll need to change this line to reflect recent bug fix at [W3C bug 26074](https://www.w3.org/Bugs/Public/show_bug.cgi?id=26074).