Skip to content

Commit

Permalink
Test </p> and </br> in SVG (#135)
Browse files Browse the repository at this point in the history
  • Loading branch information
zcorpan authored Jun 11, 2021
1 parent 082a4be commit 9b4a29c
Show file tree
Hide file tree
Showing 2 changed files with 90 additions and 0 deletions.
42 changes: 42 additions & 0 deletions tree-construction/foreign-fragment.dat
Original file line number Diff line number Diff line change
Expand Up @@ -576,6 +576,48 @@ svg svg
#document
| <p>

#data
<svg></p><foo>
#errors
9: HTML end tag “p” in a foreign namespace context.
#document-fragment
div
#document
| <svg svg>
| <p>
| <foo>

#data
<svg></br><foo>
#errors
10: HTML end tag “br” in a foreign namespace context.
#document-fragment
div
#document
| <svg svg>
| <br>
| <foo>

#data
</p><foo>
#errors
4: HTML end tag “p” in a foreign namespace context.
#document-fragment
svg svg
#document
| <p>
| <svg foo>

#data
</br><foo>
#errors
5: HTML end tag “br” in a foreign namespace context.
#document-fragment
svg svg
#document
| <br>
| <svg foo>

#data
<body><foo>
#errors
Expand Down
48 changes: 48 additions & 0 deletions tree-construction/tests26.dat
Original file line number Diff line number Diff line change
Expand Up @@ -391,3 +391,51 @@ Line 1 Col 19 Expected closing tag. Unexpected end of file.
| <button>
| <p>
| <button>

#data
<svg></p><foo>
#errors
9: HTML end tag “p” in a foreign namespace context.
#document
| <html>
| <head>
| <body>
| <svg svg>
| <p>
| <foo>

#data
<svg></br><foo>
#errors
10: HTML end tag “br” in a foreign namespace context.
#document
| <html>
| <head>
| <body>
| <svg svg>
| <br>
| <foo>

#data
<math></p><foo>
#errors
10: HTML end tag “p” in a foreign namespace context.
#document
| <html>
| <head>
| <body>
| <math math>
| <p>
| <foo>

#data
<math></br><foo>
#errors
11: HTML end tag “br” in a foreign namespace context.
#document
| <html>
| <head>
| <body>
| <math math>
| <br>
| <foo>

0 comments on commit 9b4a29c

Please sign in to comment.