I have following simple code (from here) and Firefox 49.0.1 says it has a Syntax Error in the last javascript line:
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
</head>
<body>
<script>
function doit(e) {
var eventType = e.type;
console.log("hello");
var files = e.target.files;
var reader = new FileReader();
reader.onload = function() {
var parsed = new DOMParser().parseFromString(this.result, "text/xml");
console.log(parsed);
};
reader.readAsText(files[0]);
}
document.getElementById("selectfile").addEventListener("change", doit, false); // Syntax Error here.
</script>
<input type="file" id="selectfile" />
</body>
</html>
I really don´t have a clue whats wrong. I appreciate your help.

;on that line, there's a U+200B character you can't see. Put your cursor on that;, delete it and the spaces and//after it, then type them back in. (I used to see this a lot on JSBin, perhaps you were using JSBin?)