Closed Bug 104785 Opened 23 years ago Closed 23 years ago

whitespaces are not removed prior to creation of DOM tree.

Categories

(Core :: DOM: Core & HTML, defect)

x86
Windows 2000
defect
Not set
normal

Tracking

()

VERIFIED DUPLICATE of bug 26179

People

(Reporter: alexeyc2003, Assigned: jst)

Details

(Keywords: testcase)

Attachments

(1 file)

OS: Win2K
Build: 0.9.5 (2001101117)

Whitespaces around and inside block element tags are inserted into DOM tree as
Text objects instead of being removed.

This produces the following problems:

1. Big waste of resources to accomodate a lot of extra Text objects.
2. DOM navigation by means of firstNode, lastNode and childNodes[] becomes
problematic.
3. Mozilla is not conforming to the rules of XHTML whitespace handling specified at:
http://www.w3.org/TR/2001/WD-xhtml1-20011004/#uaconf
which state:
    * All whitespace surrounding block elements should be removed.
    * When the ' xml:space ' attribute is not set to ' preserve ', then:
        * Leading and trailing white space inside a block element must be removed.

The testcase attached below demonstrates the problem:
Attached file testcase
Keywords: testcase
Dup of bug 26179? (note that we probably don't plan on changing this behavior)

*** This bug has been marked as a duplicate of 26179 ***
Status: NEW → RESOLVED
Closed: 23 years ago
Resolution: --- → DUPLICATE
verified dup
Status: RESOLVED → VERIFIED
Component: DOM: Core → DOM: Core & HTML
QA Contact: stummala → general
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: