RESOLVED DUPLICATE of bug 5312 7104
Contents of comments aren't available via DOM calls.
https://bugs.webkit.org/show_bug.cgi?id=7104
Summary Contents of comments aren't available via DOM calls.
Brian L. Matthews
Reported 2006-02-06 09:28:46 PST
In non-Safari browsers, the contents of HTML comments are available by document.getElementById(id).innerHTML. They aren't in Safari. I'll attach a simple HTML file that demonstrates the problem. When you open the attached file in Safari, you'll get a JavaScript alert reading "from commentdiv: World" and nothing else. If you open the same file in Firefox, you'll get an alert reading "from commentdiv: World" then the comment.
Attachments
Simple HTML file demonstrating bug. (432 bytes, text/html)
2006-02-06 09:29 PST, Brian L. Matthews
no flags
Brian L. Matthews
Comment 1 2006-02-06 09:29:34 PST
Created attachment 6290 [details] Simple HTML file demonstrating bug.
Joost de Valk (AlthA)
Comment 2 2006-02-06 09:58:10 PST
*** This bug has been marked as a duplicate of 4273 ***
David Kilzer (:ddkilzer)
Comment 3 2006-02-06 11:41:46 PST
I'm pretty sure this isn't a duplicate of bug 4273. Reopening.
David Kilzer (:ddkilzer)
Comment 4 2006-02-06 11:43:52 PST
Perhaps it's a duplicate of Bug 5312?
Joost de Valk (AlthA)
Comment 5 2006-02-06 11:46:35 PST
I mistakenly picked the wrong bug of which this is a duplicate. 4273 is actually the number of the testcase attached to the right one, which is 5312. *** This bug has been marked as a duplicate of 5312 ***
Note You need to log in before you can comment on or make changes to this bug.