Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Test absence of errors for open elements that do not result in error on EOF #75

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

hsivonen
Copy link
Member

@hsivonen hsivonen commented May 4, 2016

No description provided.


#data
<td>
#errors
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This (and th below) should be a parse error per spec I think:

https://html.spec.whatwg.org/multipage/syntax.html#parsing-main-intbody

A start tag whose tag name is one of: "th", "td"
Parse error.

@zcorpan
Copy link
Contributor

zcorpan commented May 4, 2016

Also see https://github.com/html5lib/html5lib-tests/pull/72/files for some similar tests


#data
<!DOCTYPE html><rb>
#errors
Copy link
Contributor

@zcorpan zcorpan May 4, 2016

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If the current node is not now a ruby element, this is a parse error.

Similarly, rp, rt, rtc below are also parse errors. Maybe test as document-fragment with ruby as context?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants