Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

JavaScript DOM Scripting By Example Adding and Removing Names Practice with Function Scope

Victor Gentile
Victor Gentile
4,996 Points

RSVP Web page adding class 'responded' to listItem adds CSS in chrome but not in firefox, curious, why?

from what I can find, it looks like firefox supports pretty much all of the same things as chrome.

is there any console error in firefox?

2 Answers

Victor Gentile
Victor Gentile
4,996 Points

firefox console; reference error: event is not defined. bla bla bla... character encoding of the HTML doc was not declared. I noticed on the HTML page the character encoding is not declared... was thinking maybe that may have something to do with it ???

the line of code is const checkbox = event.target; no errors in chrome... with the same HTML document... no character encoding there either.

If you haven't fixed the issue already, I would console.log the event to see what it is in Chrome and compare what it is in Firefox, then go from there.

Also is this in reference to the code challenge you added?

Victor Gentile
Victor Gentile
4,996 Points

I did console.log the event... multiple times... it stated that the character encoding of the HTML doc was not declared. I included character encoding in the head tag... same result... so... no... I haven't fixed the issue yet... still doing some research on google. Thanks for the response though.

You should post the snippet of the code you are having issues with, if not there really isn't much we can do.