| <html>
|   <head>
|   <body>
|     <svg svg>
|       "foo"

| <html>
|   <head>
|   <body>
|     <math math>
|       "foo"

| <html>
|   <head>
|   <body>
|     <div>
|       <!-- [CDATA[foo]] -->

| <html>
|   <head>
|   <body>
|     <svg svg>
|       "foo"

| <html>
|   <head>
|   <body>
|     <svg svg>
|       "foo"

| <html>
|   <head>
|   <body>
|     <svg svg>

| <html>
|   <head>
|   <body>
|     <svg svg>

| <html>
|   <head>
|   <body>
|     <svg svg>
|       "]] >"

| <html>
|   <head>
|   <body>
|     <svg svg>
|       "]] >"

| <html>
|   <head>
|   <body>
|     <svg svg>
|       "]]"

| <html>
|   <head>
|   <body>
|     <svg svg>
|       "]"

| <html>
|   <head>
|   <body>
|     <svg svg>
|       "]>a"

| <!DOCTYPE html>
| <html>
|   <head>
|   <body>
|     <svg svg>
|       "foo]"

| <!DOCTYPE html>
| <html>
|   <head>
|   <body>
|     <svg svg>
|       "foo]]"

| <!DOCTYPE html>
| <html>
|   <head>
|   <body>
|     <svg svg>
|       "foo]]]"

| <html>
|   <head>
|   <body>
|     <svg svg>
|       <svg foreignObject>
|         <div>
|           <!-- [CDATA[foo]] -->

| <html>
|   <head>
|   <body>
|     <svg svg>
|       "<svg>"

| <html>
|   <head>
|   <body>
|     <svg svg>
|       "</svg>a"

| <html>
|   <head>
|   <body>
|     <svg svg>
|       "<svg>a"

| <html>
|   <head>
|   <body>
|     <svg svg>
|       "</svg>a"

| <html>
|   <head>
|   <body>
|     <svg svg>
|       "<svg>"
|       <svg path>

| <html>
|   <head>
|   <body>
|     <svg svg>
|       "<svg>"

| <html>
|   <head>
|   <body>
|     <svg svg>
|       "<svg>"
|       <!-- path -->

| <html>
|   <head>
|   <body>
|     <svg svg>
|       "<svg>path"

