# HG changeset patch # User Nicholas Jillings # Date 1461150641 -3600 # Node ID 264a2f6e9b822118fa9f8561a35bb7cdd17b1a3e # Parent 90fd43dee199f5f5c12127c89c01e4d7938a3eb9 Missing surveys in Safari 8.0.4 potential fix diff -r 90fd43dee199 -r 264a2f6e9b82 js/specification.js --- a/js/specification.js Tue Apr 19 19:08:47 2016 +0200 +++ b/js/specification.js Wed Apr 20 12:10:41 2016 +0100 @@ -292,11 +292,11 @@ this.location = xml.getAttribute('location'); if (this.location == 'before'){this.location = 'pre';} else if (this.location == 'after'){this.location = 'post';} - for (var i in xml.children) + var children = xml.getAllElementsByTagName('surveyentry'); + for (var i=0; i