-
Notifications
You must be signed in to change notification settings - Fork 2.5k
Open
Description
I use sonarQube for code analysis and it's gave me vulnerability for for html5shiv.js
and html5shiv-printshiv.js file
.
I updated code as below. Am i missing anything in below function.
ownerDocument.createDocumentFragment = function(h,f){
return function(){
var n=f.cloneNode(),c=n.createElement;
h.shivMethods&&(
// unroll the `createElement` calls
getElements().join().replace(/[\w\-:]+/g, function(nodeName) {
data.createElem(nodeName);
data.frag.createElement(nodeName);
return c("' + nodeName + '");
})
);
return n;
};
}(html5, data.frag);
}
If you think this need to be change. I can create a pull request.
Metadata
Metadata
Assignees
Labels
No labels