4
Answers

jquery V-2.1.3 & jquery V-3.5.1 - Usage of DOMParser()

from jquery-2.1.3
tmp = new DOMParser(); xml = tmp.parseFromString( data, "text/xml" );
 
and jquery-3.5.1
xml = ( new window.DOMParser() ).parseFromString( data, "text/xml" );
 
What is the difference?
Answers (4)