Summary: | comments aren't available via DOM | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Product: | WebKit | Reporter: | Scott McDowell <webkit> | ||||||||
Component: | DOM | Assignee: | Timothy Hatcher <timothy> | ||||||||
Status: | RESOLVED FIXED | ||||||||||
Severity: | Normal | CC: | ap, blmatthews, gavin.sharp, ian, james | ||||||||
Priority: | P2 | Keywords: | InRadar | ||||||||
Version: | 420+ | ||||||||||
Hardware: | Mac | ||||||||||
OS: | OS X 10.4 | ||||||||||
URL: | http://webkit.opendarwin.org/blog/ | ||||||||||
Bug Depends on: | |||||||||||
Bug Blocks: | 9077 | ||||||||||
Attachments: |
|
Description
Scott McDowell
2005-10-09 17:48:30 PDT
Created attachment 4273 [details]
Test Case
In Mozilla, this code prints the string "Here I Am." In Safari, it fails.
They are not included for performance reasons. We do have a code path that will include the comments, but by default we deliberately omit them. *** Bug 7104 has been marked as a duplicate of this bug. *** Dave, It's unclear whether you mean to address this bug or to leave it broken. Please clarify. Thanks! (In reply to comment #2) > They are not included for performance reasons. We do have a code path that > will include the comments, > but by default we deliberately omit them. > We intend to fix. In fact I think we may already have. (In reply to comment #5) > We intend to fix. In fact I think we may already have. The comment node in the test case (Attachment 4273 [details]) does not appear in the Web Inspector as of WebKit r14619. See also Bug 9165 (which you may want to change to a duplicate of this bug). Created attachment 9281 [details]
Turns on comment nodes and fixes a few issues caused by it
Created attachment 9282 [details]
New version that keeps documentElement const
Uses the mutable keyword on m_documentElement to keep documentElement() a const. This eliminates my earlier const changes.
Comment on attachment 9282 [details]
New version that keeps documentElement const
r=me
Landed in r15247 |