Closed Bug 13214 Opened 25 years ago Closed 21 years ago

significant whitespace stripped out of HTML elements

Categories

(Core :: XUL, defect, P3)

x86
Linux
defect

Tracking

()

VERIFIED DUPLICATE of bug 229526
Future

People

(Reporter: dbaron, Assigned: hyatt)

Details

(Keywords: helpwanted)

Attachments

(2 files)

DESCRIPTION:  Significant whitespace is being stripped out of the edges of text
nodes within HTML elements in an XUL document.  This does not happen in an XML
document.  The basic problem is that in something like:

<block>This is <inline>an inline element</inline> in a block.</block>

The text nodes in the content model of the block element before and after the
inline element end up containing "This is" and "in a block." instead of
"This is " and " in a block.".  This means there's no space around links or
other inline elements.

I think this is an attempt to do the traditional "whitespace inside of tags in
insignificant", but it's also hitting whitespace outside of tags.

STEPS TO REPRODUCE: Load attached test case (the first one)

ACTUAL RESULTS: The bold word and the link have no space around them.

EXPECTED RESULTS: The bold word and the link should have the same spacing around
them as any other words.

DOES NOT WORK CORRECTLY ON:
 * Linux, apprunner, 1999-09-03-11-M11
 * Linux, apprunner, 1999-09-05-08-M11
 * Linux, viewer, 1999-08-04, 12:15PDT debug build

WORKS CORRECTLY ON:
 * same builds, if the document is an XML document rather than an XUL document.
(My debug build was 1999-09-04, not 1999-08-04!)
Assignee: trudelle → hyatt
Dave, should this belong to you?
Assignee: hyatt → waterson
waterson's.
Status: NEW → ASSIGNED
Target Milestone: M12
Summary: significant whitespace stripped out of HTML elements → [HELPWANTED] significant whitespace stripped out of HTML elements
Summary: [HELPWANTED] significant whitespace stripped out of HTML elements → significant whitespace stripped out of HTML elements
Whiteboard: [HELP WANTED]
Target Milestone: M12 → M15
I suck.
spam: changing qa contact from ckritzer -> paulmac for xul bugs
BULK MOVE: Changing component from XUL to XP Toolkit/Widgets: XUL.  XUL 
component will be deleted.
Component: XUL → XP Toolkit/Widgets: XUL
Keywords: helpwanted
Whiteboard: [HELP WANTED]
*IGNORE* - massive spam changing open XPToolkit bug's QA contact to
jrgm@netscape.com
QA Contact: paulmac → jrgm
Target Milestone: M15 → M16
Target Milestone: M16 → M30
Target Milestone: M30 → Future
-> parser
(related: bug 48376)
Assignee: waterson → harishd
Status: ASSIGNED → NEW
Component: XP Toolkit/Widgets: XUL → Parser
QA Contact: jrgm → dsirnapalli
This is a bug (or perhaps a feature) in the XUL content sink, not the Parser.
Assignee: harishd → hyatt
Component: Parser → XP Toolkit/Widgets: XUL
QA Contact: dsirnapalli → shrir

*** This bug has been marked as a duplicate of 229526 ***
Status: NEW → RESOLVED
Closed: 21 years ago
Resolution: --- → DUPLICATE
verified.
Status: RESOLVED → VERIFIED
Component: XP Toolkit/Widgets: XUL → XUL
QA Contact: shrir → xptoolkit.widgets
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: