Skip to content
This repository has been archived by the owner on Nov 29, 2023. It is now read-only.

Commit

Permalink
removed: obsolete validator code,
Browse files Browse the repository at this point in the history
  • Loading branch information
MartijnR committed Aug 3, 2020
1 parent 05cbaa7 commit 37b6eec
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/js/form-model.js
Original file line number Diff line number Diff line change
Expand Up @@ -125,9 +125,7 @@ FormModel.prototype.init = function() {
instanceDoc.removeChild( secondaryInstanceChildren[ i ] );
}
let rootEl;
// The instance.xml.constructor.name === 'Document' check is only supported for Enketo Validate.
// Document instances are not supposed to be used otherwise as it could create problems.
if ( instance.xml instanceof XMLDocument || instance.xml.constructor.name === 'Document' ) {
if ( instance.xml instanceof XMLDocument ) {
if ( window.navigator.userAgent.indexOf( 'Trident/' ) >= 0 ) {
// IE does not support importNode
rootEl = that.importNode( instance.xml.documentElement, true );
Expand Down

0 comments on commit 37b6eec

Please sign in to comment.