Skip to content

Commit 9dfe76e

Browse files
committed
ColladaLoader: application/xml produces Document instead of HTMLDocument.
1 parent c6e69f2 commit 9dfe76e

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

examples/js/loaders/ColladaLoader.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@
120120

121121
parse: function( text ) {
122122

123-
COLLADA = new DOMParser().parseFromString( text, 'text/xml' );
123+
COLLADA = new DOMParser().parseFromString( text, 'application/xml' );
124124

125125
this.parseAsset();
126126
this.setUpConversion();

examples/js/loaders/ColladaLoader2.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -758,7 +758,7 @@ THREE.ColladaLoader.prototype = {
758758

759759
console.time( 'ColladaLoader: DOMParser' );
760760

761-
var xml = new DOMParser().parseFromString( text, 'text/xml' );
761+
var xml = new DOMParser().parseFromString( text, 'application/xml' );
762762

763763
console.timeEnd( 'ColladaLoader: DOMParser' );
764764

0 commit comments

Comments
 (0)