innerHTML is tool just like any other - use it where appropriate, there's nothing wrong with it IMHO. You should be protecting against injection attacks ANYTIME you accept user input - assume that ALL users are trying to hack you in this way and be sure to sanitize and protect against this kind of thing - that's just good practice and will serve you well in the "real world"
#innerHTML, good practice?
2 messages · Page 1 of 1 (latest)
so like the teachers has been doing throughout the course when adding new elements is a valid approach, consider the knowledge level I posses? I have been, when possible, using the createElement but when adding multiple elements like this, it is a pain to write such loop, it just takes too much time for so little code, as I mentioned in my Q. Anyway, thanks for your reply