Closed
Bug 172917
Opened 23 years ago
Closed 23 years ago
DOM structure corruption when many comment lines are placed in a nested <DL>
Categories
(Core :: DOM: HTML Parser, defect)
Tracking
()
RESOLVED
FIXED
People
(Reporter: World, Assigned: harishd)
References
Details
Attachments
(3 files, 2 obsolete files)
When many comment lines are placed in a nested DL, DOM corruption occurs even
though very very simple DL structure.
If same HTML is generated by JavaScript and written to a window, no problem is
found.
If comment lines are reduced, no problem is found.
There is a boundary condition ; if only 1 byte of comment text is increased,
problem appears.
This is same situation as bug 154304, but I'm not certain whether these 2
problems are same or not.
bug 161121 also reported same situation.
This problem seems to be caused by overlay of Control Block for DL nesting by
DOM object data.
[Structure of HTML]
<dl>(Top level DL)
+------- ( 1st set of DT/DD )
| <dt></dt>
| <dd>(Nested DL without comment line)</dd>
+-------
+------- ( 2nd set of DT/DD )
|
| <dt></dt>
|
| +------- ( DD which includes nested DL )
| | <dd>
| |
| |
| | +------- (Nested DL,with comment lines)
| | | <dl>
| | |
| | | <dt></dt>
| | | <dd></dd>
| | |
| | | ( N-1 lines of comment )
| | | <!-- [ Comment text of length = L1 ] -->
| | | ( N th (last) comment line )
| | | <!-- [ Last comment text of length = L2 ] -->
| | |
| | | </dl>
| | +-------
| |
| | <span></span> ( span after nested DL within a DD block )
| |
| | </dd>
| +-------
+-------
+------- ( 3rd set of DT/DD )
| <dt></dt>
| <dd>(Nested DL without comment line)</dd>
+-------
</dl>(End of Top level DL)
| Reporter | ||
Comment 1•23 years ago
|
||
This is detailed problem description and includes JavaScript generated HTML
test case.
Recreation test procedure is also described.
| Reporter | ||
Comment 2•23 years ago
|
||
Comment 3•23 years ago
|
||
Not a DOM problem, over to parser.
Assignee: jst → harishd
Component: DOM HTML → Parser
QA Contact: stummala → moied
| Reporter | ||
Comment 4•23 years ago
|
||
Number of comments in nested DL is different from attachment 101910 [details] .
This case contains only 1 comment line in a nested DL.
In this normal case, DOM structure is correct and indention is proper.
| Reporter | ||
Comment 5•23 years ago
|
||
Replacement of attachment 101908 [details].
Attachment #101908 -
Attachment is obsolete: true
| Reporter | ||
Comment 6•23 years ago
|
||
(Right) replacement of attachment 101908 [details].
attachment 102287 [details] is invalid. Sorry for my mistake.
Attachment #102287 -
Attachment is obsolete: true
Comment 7•23 years ago
|
||
Fixed by bug 179071
Status: UNCONFIRMED → RESOLVED
Closed: 23 years ago
Resolution: --- → FIXED
| Reporter | ||
Comment 8•23 years ago
|
||
Problem in attachment 102289 [details] has been resolved completely on
2002111404-trunc/Win-Me.
I believe "nested DL in DD" devil has vanished by your silver bullet :-)
Boris Zbarsky san, thanks a lot.
You need to log in
before you can comment on or make changes to this bug.
Description
•