The following is a test for parsing ruby and elements. According to HTML5 spec, end-tags for both are optional if followed by another or . However, they should NOT be auto-closed by other inline elements, such as . TEST PASSED: Markup was correct Before base/text/ After