src/__tests__/fixtures/cdata.xhtml
raw| 1 | <?xml version="1.0" encoding="utf-8"?> |
| 2 | <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> |
| 3 | |
| 4 | <html xmlns="http://www.w3.org/1999/xhtml"> |
| 5 | <head> |
| 6 | <meta http-equiv="Content-Type" content="application/xhtml+xml; charset=utf-8" /> |
| 7 | <title>Test</title> |
| 8 | </head> |
| 9 | <body> |
| 10 | |
| 11 | <script type="text/javascript"> |
| 12 | <![CDATA[ |
| 13 | console.log("a"); |
| 14 | ]]> |
| 15 | </script> |
| 16 | |
| 17 | </body> |
| 18 | </html> |