If you run something like x.innerHTML =
"<html><body><h2>test</h2></body></html>" in JavaScript, the resulting DOM
tree will contain a cycle. This is because HTMLParser has a special
handling for <body>, which is incorrect in this case.
Patch attached.
Daniel Gredler
None
None
Public
|
Date: 2009-03-18 18:47 This Tracker item was closed automatically by the system. It was |
|
Date: 2008-12-30 22:55 A (very) slightly modified version of your test case works for me with the |
|
Date: 2008-12-30 21:43 Test case attached. This causes StackOverflowError without my patch. |
|
Date: 2008-12-30 20:06 Can you attach a unit test which fails with the current codebase? I'm |
| Field | Old Value | Date | By |
|---|---|---|---|
| close_date | 2009-01-02 17:54 | 2009-03-18 18:47 | sf-robot |
| allow_comments | 1 | 2009-03-18 18:47 | sf-robot |
| status_id | Pending | 2009-03-18 18:47 | sf-robot |
| close_date | - | 2009-01-02 17:54 | sdanig |
| status_id | Open | 2009-01-02 17:54 | sdanig |
| assigned_to | nobody | 2009-01-02 17:54 | sdanig |
| File Added | 307227: DIFF-testcase | 2008-12-30 21:43 | kkawa |
| File Added | 306926: DIFF | 2008-12-28 19:03 | kkawa |
Copyright © 2009 Geeknet, Inc. All rights reserved. Terms of Use