Closed Bug 98187 Opened 23 years ago Closed 23 years ago

</font> closes <select>

Categories

(Core :: DOM: HTML Parser, defect, P1)

x86
Windows 2000
defect

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)

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.
Attached file testcase
removing the outermost <div> in the testcase makes it display sanely.
Keywords: testcase
<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.
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
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
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 → ---
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>
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.
This is indeed a regression of bug 6169
Keywords: regression
*** Bug 99272 has been marked as a duplicate of this bug. ***
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
*** Bug 99347 has been marked as a duplicate of this bug. ***
Keywords: nsbranch
Attached patch patch v1.0Splinter Review
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]
Get SR, then check it in.
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]
FIXED.
Status: ASSIGNED → RESOLVED
Closed: 23 years ago23 years ago
Resolution: --- → FIXED
Whiteboard: [PDT+][fix in hand] → [PDT+][fix on the trunk and branch]
QA Contact: bsharma → moied
verified fixed on build ID 20010927
Keywords: vtrunk
*** Bug 104921 has been marked as a duplicate of this bug. ***
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.

Attachment

General

Creator:
Created:
Updated:
Size: