Closed Bug 44415 Opened 24 years ago Closed 24 years ago

Whitespace is stripped inside <OL> elements

Categories

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

defect

Tracking

()

VERIFIED WONTFIX

People

(Reporter: ian, Assigned: harishd)

References

()

Details

(Keywords: css1, testcase, Whiteboard: [strict dtd][nsbeta3-] hit during nsbeta2 standards compliance testing (py8ieh:verify that this works for all HTML elements))

Whitespace is being stripped inside OL elements (and probably any elements that
do not expect to see CDATA content), causing layout errors when the 'display'
property of elements is changed.

Ok, technically this might not actually be a bug, if we treat HTML Strict as
SGML. But according to XML, it is wrong, so if we treat HTML Strict as just a
slightly different version of XHTML Strict, then we are wrong. :-)

This is causeing some moderately ugly problems. One particularly high-profile 
error is that it makes one of the Web Standards Project test cases look ugly, 
which is unfortunate since we otherwise get it correct.

Look at Example 1 of:
   http://www.webstandards.org/css/winie/displaypropertydemo1.html

It should look the same as the second part of Example 1, but because whitespace
is being stripped in between the <LI> elements, it all goes wrong and the links
appear to touch each other.

The fix is (I guess) to allow whitespace in and around ALL elements in the
Strict DTD. Yes, that includes the HEAD element and its children, because the
'white-space' and 'display' properties apply to those just as much as any other.

I'm marking this...
  4xp: IE5 gets this correct.
  css1: Because this affects the use of the 'display' property.
  testcase: There is a testcase.
  nsbeta3: Since this is a spec compliance issue and affects a high-profile
   standards compliance website, I am nominating this for nsbeta3.
  dependent on 7954: because it is an HTML issue.

cc'ing David. Assigning to Harish since Rick is away.
Blocks: html4.01
Keywords: 4xp, css1, nsbeta3, testcase
Whiteboard: (py8ieh:verify that this works for all HTML elements)
Similar (known) problem inside of tables.  These things wreak havoc on the
editor.
Status: NEW → ASSIGNED
Target Milestone: --- → M18
Keywords: correctness
OS: Windows NT → All
Hardware: PC → All
Whiteboard: (py8ieh:verify that this works for all HTML elements) → hit during nsbeta2 standards compliance testing (py8ieh:verify that this works for all HTML elements)
Summary: [STRICT DTD] Whitespace is stripped inside <OL> elements → Whitespace is stripped inside <OL> elements
Whiteboard: hit during nsbeta2 standards compliance testing (py8ieh:verify that this works for all HTML elements) → [strict dtd] hit during nsbeta2 standards compliance testing (py8ieh:verify that this works for all HTML elements)
Strict DTD will not be supported for netscape 6.0. Marking beta3-.
Whiteboard: [strict dtd] hit during nsbeta2 standards compliance testing (py8ieh:verify that this works for all HTML elements) → [strict dtd][nsbeta3-] hit during nsbeta2 standards compliance testing (py8ieh:verify that this works for all HTML elements)
Marking wontfix. We've decided to punt on strictDTD for 6.0.
Status: ASSIGNED → RESOLVED
Closed: 24 years ago
Resolution: --- → WONTFIX
verified
Status: RESOLVED → VERIFIED
FTR, this appears to have eventually been fixed. In 2001092308 W98, the test
matches the expected behavior in example 1.
You need to log in before you can comment on or make changes to this bug.