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 Interacting with the DOM Traversing the DOM Traversing up the DOM with parentNode

Is it possible for Treehouse to add workspaces to Reggie's videos?

It'd be nice if they had them. Also the quiz where it was testing for e.target === INPUT was a bit buggy, instead of INPUT it only worked with [object HTMLInputElement]

1 Answer

Steven Parker
Steven Parker
229,708 Points

While the forum is a great place to get help from other students on learning issues, a better way to submit requests and suggestions on course material is by contacting the staff directly as described on the Support page.

And by "quiz", if you are referring to the Event Delegation challenge, the correct way to determine the element type would be to test the tagName of the element: e.target.tagName === "INPUT". Testing the implicitly coerced string version of the element directly is clever, but it's obscure and might not reliably work on all browsers.