Closed Bug 577111 Opened 14 years ago Closed 14 years ago

List with an Anchor child which has a List child creates additional Anchors

Categories

(Core :: DOM: HTML Parser, defect)

defect
Not set
normal

Tracking

()

RESOLVED WORKSFORME

People

(Reporter: brandon, Unassigned)

References

Details

Attachments

(2 files)

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.6) Gecko/20100625 Firefox/3.6.6 GTB7.1
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.6) Gecko/20100625 Firefox/3.6.6 GTB7.1

If an anchor, which is a child of an unordered list, has an unordered list as a child, the anchor will be closed and reopened prior to each LI and closed and reopened after the final LI.

Probably goes back to when Anchors could not contain block level elements. 

Reproducible: Always

Steps to Reproduce:
1. Open UL
2. Open LI
3. Open A
4. Open UL
5. Open LI
6. Create text
7. Close LI
8. Close UL
9. Close A
10. Close LI
11. Close UL
Actual Results:  
Creates 3 Anchor Tags

-ul
--li
---a
----#text
---ul
----li
-----a
------#text
---a
----#text

Expected Results:  
Single Anchor Tag

-ul
--li
---a
----ul
-----li
------#text
Attached file Test Case
Look at DOM to see issue.
WFM on trunk, thanks to the HTML5 parser.
Status: UNCONFIRMED → RESOLVED
Closed: 14 years ago
Component: DOM → HTML: Parser
Depends on: html5-parsing
OS: Windows 7 → All
QA Contact: general → parser
Hardware: x86 → All
Resolution: --- → WORKSFORME
Thanks for checking trunk! I'm at work and don't have access to it right now... going to have to change that. Anyway, thank you again!
I've got this issue in Firefox 3.6.12 on Mac OS X 10.6.4. Issue showed up with errant :hover behaviour. Here's a test case: http://watershedcreative.com/browser-bugs/bugzilla-577111.html
Attached file HTML test case
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: