Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

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.