On 07/13/2009 01:43:12 AM, Dave Rolsky wrote: > > <p onclick=" alert( 'I <3 you, Meller\'s Mongoose' ); ">click > me</p> > > Which one small reason, among many, of why you shouldn't do that. > Unobtrusive JS techniques let you avoid this entirely, and make sure > much > cleaner HTML and JS.
I know there are a lot of strong feelings out there re: "un/ obtrusiveness" but when you have to write a wrapper for a dead simple alert call, "unobtrusiveness" starts to sound like "pro-obtuseness" to me ;P I would rather just confine my unobtrusiveness to not defining js functions anywhere in the <body>. I find it much more confusing/ obfuscating to learn that an element has a function attached to it via css or a js header, when there is no clue left in the page source at all. MK ------------------------------------------------------------------------------ Enter the BlackBerry Developer Challenge This is your chance to win up to $100,000 in prizes! For a limited time, vendors submitting new applications to BlackBerry App World(TM) will have the opportunity to enter the BlackBerry Developer Challenge. See full prize details at: http://p.sf.net/sfu/Challenge _______________________________________________ Mason-users mailing list Mason-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mason-users