v2.0.14 not reporting javascript case errors

30 views
Skip to first unread message

CharlesEF

unread,
Feb 18, 2016, 1:10:48 PM2/18/16
to Firebug
Hi All,

I ran into this problem, I made a case mistake in the javascript property 'innerHTML'.  I used 'innerhtml; instead and when my results didn't display I turned to Firebug for help.  I find that Firebug was of no help this time.  No error was reported.

Is there a configuration option I overlooked?  Or, is Firebug not able to catch these kinds of errors?

Thanks for any help,

CharlesEF

alfonsoml

unread,
Feb 18, 2016, 5:27:35 PM2/18/16
to Firebug
None of the debuggers will help you if you try to write to a non-existing property because the browser will automatically create that property.
If you inspect that element you'll see that it included both the innerHTML as well as you custom innerhtml properties

CharlesEF

unread,
Feb 19, 2016, 1:00:08 AM2/19/16
to Firebug
Ok, thanks for the information.

Sebastian Zartner

unread,
Feb 19, 2016, 3:15:48 AM2/19/16
to Firebug
Just for clarity, setting innerhtml as property is not a JavaScript error and is therefore not shown as exception within Firebug's (or any other devtools') console.
To find errors like this one step debugging your code may come in very handy. I.e. when you step over the statement where you set the innerhtml property and you see that the contents are not added to the page as expected, it should be easy to see why that's the case.

Sebastian

Lawrence San

unread,
Feb 19, 2016, 1:26:29 PM2/19/16
to fir...@googlegroups.com
I think the reason this is so confusing to people is that HTML and CSS are not case-sensitive, but JavaScript is -- even when the JS tag is quite similar to an HTML/CSS tag it's derived from.

Reply all
Reply to author
Forward
0 new messages