Klaus Hartl-3 wrote: > > You could access the comment node, it should be a node as every other > node. Here's an outline (not tested): > > var nodes = $('#s_item_6').get(0).getElementsByTagName('*'); > for (var i = 0; i < nodes.length; i++) { > var node = nodes[i]; > if (node.nodeType == COMMENT_NODE) { > alert(node.nodeValue); > break; > } > } > > > Not sure if that is supported by Safari at all... >
I get a 'COMMENT_NODE is not defined' error message (in Firefox). This is my implementation: $(".msgentry").click(function(){ var nodes = $(this).get(0).getElementsByTagName('*'); for (var i = 0; i < nodes.length; i++) { var node = nodes[i]; if (node.nodeType == COMMENT_NODE) { hiddeninfo = node.nodeValue; break; } } }); Well, it wouldn't be very difficult to change the code so I could access the info in hidden divs (or spans), but I'm still interested in the HTML comment solution ... if possible. Btw, if anyone is interested in helping me beta testing my app next week, please let me know. More infos: http://www.osxcode.com/2006/11/23/beta-testing-for-jme-web-20-feed-aggregator/ Fredi -- View this message in context: http://www.nabble.com/Safari-problem-with-html%28%29-...-possible-bug--tf2704812.html#a7543579 Sent from the JQuery mailing list archive at Nabble.com. _______________________________________________ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/