Skip to content

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

Open
hsivonen wants to merge 1 commit into
masterfrom
openoneof
Open

Test absence of errors for open elements that do not result in error on EOF#75
hsivonen wants to merge 1 commit into
masterfrom
openoneof

Conversation

@hsivonen

@hsivonen hsivonen commented May 4, 2016

Copy link
Copy Markdown
Member

No description provided.


#data
<td>
#errors

Copy link
Copy Markdown
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

zcorpan commented May 4, 2016

Copy link
Copy Markdown
Contributor

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


#data
<!DOCTYPE html><rb>
#errors

@zcorpan zcorpan May 4, 2016

Copy link
Copy Markdown
Contributor

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