Skip to content

Commit

Permalink
capricorn86#519@patch: Fix stuck bugs.
Browse files Browse the repository at this point in the history
  • Loading branch information
Mas0nShi committed Feb 24, 2023
1 parent 44e9a9f commit 7a9c2eb
Showing 1 changed file with 19 additions and 19 deletions.
38 changes: 19 additions & 19 deletions packages/happy-dom/test/xml-parser/XMLParser.test.ts
Expand Up @@ -437,25 +437,25 @@ describe('XMLParser', () => {
'<![endif]-->',

'<!DOCTYPE html><html lang="en">\n' +
'<head>\n' +
' <meta charset="UTF-8">\n' +
' <title>Title</title>\n' +
'</head>\n' +
'<body>\n' +
'<!--[if lt IE 9]>\n' +
'<script>window.location = \'browser.htm\';</script>\n' +
'<![endif]-->\n' +
'\n' +
'\n' +
'<script>\n' +
' const node = document.createElement(\'a\');\n' +
' node.href = \'http://www.google.com\';\n' +
' node.target = \'_blank\';\n' +
' node.innerHTML = \'google\';\n' +
' window.document.body.appendChild(node);\n' +
'</script>\n' +
'</body>\n' +
'</html>\n'
'<head>\n' +
' <meta charset="UTF-8">\n' +
' <title>Title</title>\n' +
'</head>\n' +
'<body>\n' +
'<!--[if lt IE 9]>\n' +
"<script>window.location = 'browser.htm';</script>\n" +
'<![endif]-->\n' +
'\n' +
'\n' +
'<script>\n' +
" const node = document.createElement('a');\n" +
" node.href = 'http://www.google.com';\n" +
" node.target = '_blank';\n" +
" node.innerHTML = 'google';\n" +
' window.document.body.appendChild(node);\n' +
'</script>\n' +
'</body>\n' +
'</html>\n'
];

for (const html of testHTML) {
Expand Down

0 comments on commit 7a9c2eb

Please sign in to comment.