Quantcast
Channel: Recent Questions - Stack Overflow
Viewing all articles
Browse latest Browse all 15671

Why does Firefox throw an XML format error when Chrome does not?

$
0
0

Firefox throws a format error on my XML string whereas Chrome parses it without a problem.

I pass a string of XML (in variable 'doc') thus:

var xmlDoc = parseXML(doc);

This works in Chrome, but causes a format error in Firefox.

My header statements are:

<?xml version="1.0" encoding="utf-8"?><!DOCTYPE html><html lang=en></html><head><meta http-equiv="content-type" content="text/html; charset=utf-8;"/><meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no"/><meta http-equiv="X-UA-Compatible"  /> <style>        v\: * {        behavior: url(#default#VML);        display: inline-block        }</style></head>

Viewing all articles
Browse latest Browse all 15671

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>