JavaScript can access hidden HTML Jul27 '06
Feedback
# (2 of 4): Jennifer Grucza » jennifergrucza.com
5 days, 4 hours after the fact. (Tue 01 Aug 2006, 1:08 PM CST)
Yes, but hidden form fields are different - Matt’s talking about commented out HTML! I find that very strange that Javascript can "see" that HTML. In fact, it seems a little dangerous to me...
# (3 of 4): Shane » xcashmoneyx.freeweb7.com,http://rocketstart.8tt.org
1 year, 7 months after the fact. (Sat 23 Feb 2008, 6:57 PM CST)
# (4 of 4): Bladewing2
2 years, 2 months after the fact. (Mon 29 Sep 2008, 8:59 AM CST)
Just came across this and I can think of one pretty good reason javascript could see commented code. If you write a help system using javascript that reads commented text to build the help menu's and information...Just the first thing that entered my mind..and actually..I think I'll work on that when I get a chance. Might be kind of useful.
RSS feed for comments on this post
Leave feedback
matthom
is published and produced by Matt Thommes - an independent publishing enthusiast, mobile blogger, content creator, informative writer, web developer from Chicago.
Never one to conform, Matt intends to promote the effect the web has on our lives, in an effort to intensify, instruct, and clarify all that is happening around us.
JavaScript can still access elements hidden by HTML comment tags.
You are at the feedback permalink page for: JavaScript can access hidden HTML
# (1 of 4): Andy
8 hours, 27 minutes after the fact. (Thu 27 Jul 2006, 4:48 PM CST)
Actually in the product I work on, we use hidden form fields all over the place to pass data between UI stuff when it is not worth sending back to the database.