wsick / Fayde

Inspired by Silverlight; XAML engine using Javascript and rendering to the HTML5 Canvas.
MIT License
189 stars 27 forks source link

Console error displayed in IE but not in Chrome #236

Closed opcodewriter closed 8 years ago

opcodewriter commented 8 years ago

I could only see this in IE, but not in Chrome:

snip_20160202104835

In order to get an error use something invalid in the XAML:

<Button><Button>

opcodewriter commented 8 years ago

OK, now I see that DOMParser doesn't throw any error. Instead, it returns a document with node http://stackoverflow.com/questions/11563554/how-do-i-detect-xml-parsing-errors-when-using-javascripts-domparser-in-a-cross https://developer.mozilla.org/en-US/docs/Web/API/DOMParser#Parsing_XML https://github.com/cburgmer/sane-domparser-error

Some browsers report the errors on console (IE) others don't (Chrome). It would be nice to always report XAML parse errors to console

BSick7 commented 8 years ago

Added error reporting in 0.19.14.