Skip to content

Commit cac000a

Browse files
Sebmasterdomenic
authored andcommitted
Trust the returned tagnames of the parser
1 parent 2939c90 commit cac000a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/jsdom/browser/htmltodom.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ function setChild(parent, node) {
158158
case 'script':
159159
case 'style':
160160
try {
161-
newNode = currentDocument.createElement(node.name);
161+
newNode = currentDocument._createElementNoTagNameValidation(node.name);
162162
if (node.location) {
163163
newNode.sourceLocation = node.location;
164164
newNode.sourceLocation.file = parent.sourceLocation.file;

0 commit comments

Comments
 (0)