Mohammad Irshad

Mohammad Irshad

  • NA
  • 9.4k
  • 2.1m

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

Jan 29 2021 12:27 PM
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)