Closed
Bug 238989
Opened 21 years ago
Closed 21 years ago
[FIXr]whitespace after a </b> tag is ignored when enclosed inside <fieldset></fieldset> tags
Categories
(Core :: DOM: HTML Parser, defect, P1)
Tracking
()
RESOLVED
FIXED
mozilla1.8alpha1
People
(Reporter: sethborg, Assigned: bzbarsky)
References
Details
(Keywords: testcase)
Attachments
(4 files)
419 bytes,
text/html
|
Details | |
115 bytes,
text/html
|
Details | |
403 bytes,
text/html
|
Details | |
1.43 KB,
patch
|
choess
:
review+
peterv
:
superreview+
brendan
:
approval1.7+
|
Details | Diff | Splinter Review |
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.6) Gecko/20040206 Firefox/0.8
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.6) Gecko/20040206 Firefox/0.8
<b>text</b> more text comes out looking like this: textmore text.
<b>text </b> more text comes out correctly.
I've been having to use <span style="font-weight: bold;">text</span> more text
to make it look right.
Reproducible: Always
Steps to Reproduce:
1. Just try putting some whitespace after a </b> tag, it won't show up.
2. <b>text</b> more text comes out looking like this: textmore text.
Actual Results:
textmore text
Expected Results:
text more text
Comment 1•21 years ago
|
||
WFM 20040327 PC/WinXP
Testcase forthcoming
Assignee: firefox → nobody
Component: General → Layout
Keywords: testcase
Product: Firefox → Browser
QA Contact: core.layout
Version: unspecified → Trunk
Comment 2•21 years ago
|
||
Summary: whitespace after a </b> tag is ignored → whitespace after a </b> tag is ignored when enclosed inside <fieldset></fieldset> tags
Attachment #144964 -
Attachment mime type: text/plain → text/html
Comment 5•21 years ago
|
||
Confirming, Mozilla1.7b, Linux/x86.
Status: UNCONFIRMED → NEW
Ever confirmed: true
Comment 6•21 years ago
|
||
Same as comment #19 in bug 48376, although I'm not entirely sure it's the same
underlying issue as the original problem in bug 48376.
Assignee: nobody → parser
Component: Layout → HTML: Parser
Assignee | ||
Comment 7•21 years ago
|
||
Assignee | ||
Comment 8•21 years ago
|
||
Comment on attachment 145302 [details] [diff] [review]
This should fix it
So the problem here was that <fieldset> was marked as a tag which is allowed to
discard
all direct child whitespace that's not part of a text run. That seems pretty
bogus to me.
Attachment #145302 -
Flags: superreview?(peterv)
Attachment #145302 -
Flags: review?(choess)
Assignee | ||
Comment 10•21 years ago
|
||
Because there is absolutely no reason that fieldset should be allowed to strip
out whitespace? Perhaps a better question is, "why would that possibly be not
bogus?"
Comment 11•21 years ago
|
||
Comment on attachment 145302 [details] [diff] [review]
This should fix it
Fine by me, although I don't really understand why we'd want kOmitWS at all.
Attachment #145302 -
Flags: superreview?(peterv) → superreview+
Comment 12•21 years ago
|
||
Comment on attachment 145302 [details] [diff] [review]
This should fix it
What peterv said.
Attachment #145302 -
Flags: review?(choess) → review+
Assignee | ||
Comment 13•21 years ago
|
||
It's meant to be an optimization (memory-saving, etc), I think. If you guys
think we should remove it, I'll be up for that. Editor will likely thank us. ;)
Assignee: parser → bzbarsky
OS: Windows XP → All
Priority: -- → P1
Hardware: PC → DEC
Summary: whitespace after a </b> tag is ignored when enclosed inside <fieldset></fieldset> tags → [FIXr]whitespace after a </b> tag is ignored when enclosed inside <fieldset></fieldset> tags
Target Milestone: --- → mozilla1.8alpha
Assignee | ||
Comment 14•21 years ago
|
||
Actually, I _think_ that this patch should be safe enough for 1.7. Peterv,
choess, what do you think?
for the record, removing kOmitWS sonuds like a swell idea to me.
Comment 16•21 years ago
|
||
Yeah, this should be safe for 1.7 imho.
Assignee | ||
Comment 17•21 years ago
|
||
Comment on attachment 145302 [details] [diff] [review]
This should fix it
Could this be approved for 1.7? This is a safe fix to keep us from mis-parsing
content inside <fieldset>.
Attachment #145302 -
Flags: approval1.7?
Comment 18•21 years ago
|
||
Comment on attachment 145302 [details] [diff] [review]
This should fix it
a=brendan@mozilla.org for 1.7 final.
/be
Attachment #145302 -
Flags: approval1.7? → approval1.7+
Assignee | ||
Comment 19•21 years ago
|
||
Checked in for 1.7. I've filed bug 240139 as a followup on the kOmitWS issue.
Status: NEW → RESOLVED
Closed: 21 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•