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

Add tests for non-void <menuitem> #72

Merged
merged 1 commit into from
Apr 28, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
229 changes: 229 additions & 0 deletions tree-construction/menuitem-element.dat
Original file line number Diff line number Diff line change
@@ -0,0 +1,229 @@
#data
<menuitem>
#errors
10: Start tag seen without seeing a doctype first. Expected “<!DOCTYPE html>”.
#document
| <html>
| <head>
| <body>
| <menuitem>

#data
</menuitem>
#errors
11: End tag seen without seeing a doctype first. Expected “<!DOCTYPE html>”.
11: Stray end tag “menuitem”.
#document
| <html>
| <head>
| <body>

#data
<!DOCTYPE html><body><menuitem>A
#errors
#document
| <!DOCTYPE html>
| <html>
| <head>
| <body>
| <menuitem>
| "A"

#data
<!DOCTYPE html><body><menuitem>A<menuitem>B
#errors
#document
| <!DOCTYPE html>
| <html>
| <head>
| <body>
| <menuitem>
| "A"
| <menuitem>
| "B"

#data
<!DOCTYPE html><body><menuitem>A<menu>B</menu>
#errors
#document
| <!DOCTYPE html>
| <html>
| <head>
| <body>
| <menuitem>
| "A"
| <menu>
| "B"

#data
<!DOCTYPE html><body><menuitem>A<hr>B
#errors
#document
| <!DOCTYPE html>
| <html>
| <head>
| <body>
| <menuitem>
| "A"
| <hr>
| "B"

#data
<!DOCTYPE html><li><menuitem><li>
#errors
#document
| <!DOCTYPE html>
| <html>
| <head>
| <body>
| <li>
| <menuitem>
| <li>

#data
<!DOCTYPE html><menuitem><p></menuitem>x
#errors
39: Stray end tag “menuitem”.
#document
| <!DOCTYPE html>
| <html>
| <head>
| <body>
| <menuitem>
| <p>
| "x"

#data
<!DOCTYPE html><p><b></p><menuitem>
#errors
25: End tag “p” seen, but there were open elements.
21: Unclosed element “b”.
35: End of file seen and there were open elements.
#document
| <!DOCTYPE html>
| <html>
| <head>
| <body>
| <p>
| <b>
| <b>
| <menuitem>

#data
<!DOCTYPE html><menuitem><asdf></menuitem>x
#errors
40: End tag “menuitem” seen, but there were open elements.
31: Unclosed element “adsf”.
#document
| <!DOCTYPE html>
| <html>
| <head>
| <body>
| <menuitem>
| <adsf>
| "x"

#data
<!DOCTYPE html></menuitem>
#errors
26: Stray end tag “menuitem”.
#document
| <!DOCTYPE html>
| <html>
| <head>
| <body>

#data
<!DOCTYPE html><html></menuitem>
#errors
26: Stray end tag “menuitem”.
#document
| <!DOCTYPE html>
| <html>
| <head>
| <body>

#data
<!DOCTYPE html><head></menuitem>
#errors
26: Stray end tag “menuitem”.
#document
| <!DOCTYPE html>
| <html>
| <head>
| <body>

#data
<!DOCTYPE html><select><menuitem></select>
#errors
33: Stray start tag “menuitem”.
#document
| <!DOCTYPE html>
| <html>
| <head>
| <body>
| <select>

#data
<!DOCTYPE html><option><menuitem>
#errors
#document
| <!DOCTYPE html>
| <html>
| <head>
| <body>
| <option>
| <menuitem>

#data
<!DOCTYPE html><menuitem><option>
#errors
#document
| <!DOCTYPE html>
| <html>
| <head>
| <body>
| <menuitem>
| <option>

#data
<!DOCTYPE html><menuitem></body>
#errors
#document
| <!DOCTYPE html>
| <html>
| <head>
| <body>
| <menuitem>

#data
<!DOCTYPE html><menuitem></html>
#errors
#document
| <!DOCTYPE html>
| <html>
| <head>
| <body>
| <menuitem>

#data
<!DOCTYPE html><menuitem><p>
#errors
#document
| <!DOCTYPE html>
| <html>
| <head>
| <body>
| <menuitem>
| <p>

#data
<!DOCTYPE html><menuitem><li>
#errors
#document
| <!DOCTYPE html>
| <html>
| <head>
| <body>
| <menuitem>
| <li>
11 changes: 0 additions & 11 deletions tree-construction/tests25.dat
Original file line number Diff line number Diff line change
Expand Up @@ -88,17 +88,6 @@ eof
| <command>
| "A"

#data
<!DOCTYPE html><body><menuitem>A
#errors
#document
| <!DOCTYPE html>
| <html>
| <head>
| <body>
| <menuitem>
| "A"

#data
<!DOCTYPE html><body><embed>A
#errors
Expand Down