Closed
Bug 98187
Opened 23 years ago
Closed 23 years ago
</font> closes <select>
Categories
(Core :: DOM: HTML Parser, defect, P1)
Tracking
()
VERIFIED
FIXED
mozilla0.9.5
People
(Reporter: Deinst, Assigned: harishd)
References
()
Details
(Keywords: regression, testcase, topembed, Whiteboard: [PDT+][fix on the trunk and branch])
Attachments
(3 files)
476 bytes,
text/html
|
Details | |
255 bytes,
text/html
|
Details | |
1.47 KB,
patch
|
hjtoi-bugzilla
:
review+
vidur
:
superreview+
|
Details | Diff | Splinter Review |
From Bugzilla Helper: User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:0.9.3+) Gecko/20010831 BuildID: 2001083103 The div tag enclosing the form seems to confuse the parser, and misplaces the contents of the select box. Reproducible: Always Steps to Reproduce: 1. Load the Page (or a testcase coming soon) 2. look at the select box. 3. Actual Results: Nothing but Abington appears in the select box Expected Results: Lots of towns, up to and including Worcester. It works in IE, and it appears to be correct HTML.
Reporter | ||
Comment 1•23 years ago
|
||
Reporter | ||
Comment 2•23 years ago
|
||
removing the outermost <div> in the testcase makes it display sanely.
Keywords: testcase
Comment 3•23 years ago
|
||
<div> is not valid inside <option> (no tags are allowed inside <option> in fact...). So we see <div><select><option><div> text </div></option> ... and we ignore the second <div>, assume </div> applies to the first <div> and you get the results you see. Definitely seems like a parser problem.
Reporter | ||
Comment 4•23 years ago
|
||
Much the same problem happens at http://www.xicomputer.com/products/mtoweramd2p.asp but there it's ...<font> <option> text </option> </font>...
David: Do you have testcase for the problem ( though I couldn't see where the problem is ) seen in http://www.xicomputer.com/products/mtoweramd2p.asp? -->0.9.5
Status: NEW → ASSIGNED
Priority: -- → P1
Target Milestone: --- → mozilla0.9.5
Comment 6•23 years ago
|
||
Duping into bug 98645, which has a testcase. *** This bug has been marked as a duplicate of 98645 ***
Status: ASSIGNED → RESOLVED
Closed: 23 years ago
Resolution: --- → DUPLICATE
Comment 7•23 years ago
|
||
Ah, never mind. Reopening for David's bug on xicomputers, which is that a </font> in <select> terminates the <select>.
Status: RESOLVED → REOPENED
Resolution: DUPLICATE → ---
Comment 8•23 years ago
|
||
Comment 9•23 years ago
|
||
It looks like the </font> inside <select> closes the <font> tag open outside the select as well as the one inside, and, in doing so, the select itself.
Summary: <div> confuses select → </font> closes <select>
Comment 10•23 years ago
|
||
Bug 6169 ?
Comment 11•23 years ago
|
||
The second test case works for me, Mozilla 0.9.3, Debian GNU/Linux Woody. Can try at home (recent nightly, Debian Sid) if you want to. The first one still show the problem.
Comment 13•23 years ago
|
||
*** Bug 99272 has been marked as a duplicate of this bug. ***
Assignee | ||
Comment 14•23 years ago
|
||
I thought I tested this case when I landed the fix for bug 56245. Apparently, I was wrong. Will work on it. Adding topembed keyword.
Status: REOPENED → ASSIGNED
Keywords: topembed
Comment 15•23 years ago
|
||
*** Bug 99347 has been marked as a duplicate of this bug. ***
Assignee | ||
Comment 16•23 years ago
|
||
Assignee | ||
Comment 17•23 years ago
|
||
Added check for root tag list. Note: Root tag list is the set of tags that cannot be crossed over when an end tag tries to close it's matching open tag on the stack.
Whiteboard: [fix in hand]
Updated•23 years ago
|
Attachment #49763 -
Flags: review+
topembed -> nsbranch+
Comment 19•23 years ago
|
||
Get SR, then check it in.
Comment 20•23 years ago
|
||
Comment on attachment 49763 [details] [diff] [review] patch v1.0 sr=vidur
Attachment #49763 -
Flags: superreview+
PDT agreed that as soon as this gets sr, this gets PDT+.
Whiteboard: [fix in hand] → [PDT+][fix in hand]
Assignee | ||
Comment 22•23 years ago
|
||
FIXED.
Status: ASSIGNED → RESOLVED
Closed: 23 years ago → 23 years ago
Resolution: --- → FIXED
Whiteboard: [PDT+][fix in hand] → [PDT+][fix on the trunk and branch]
Comment 24•23 years ago
|
||
*** Bug 104921 has been marked as a duplicate of this bug. ***
Comment 25•23 years ago
|
||
Marking bug as verified with build ID 20011116 on win2k
Status: RESOLVED → VERIFIED
You need to log in
before you can comment on or make changes to this bug.
Description
•