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)
Tracking
()
People
(Reporter: alexeyc2003, Assigned: jst)
Details
(Keywords: testcase)
Attachments
(1 file)
1.76 KB,
text/html
|
Details |
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:
Reporter | ||
Comment 1•23 years ago
|
||
Comment 2•23 years ago
|
||
Dup of bug 26179? (note that we probably don't plan on changing this behavior)
Assignee | ||
Comment 3•23 years ago
|
||
*** This bug has been marked as a duplicate of 26179 ***
Status: NEW → RESOLVED
Closed: 23 years ago
Resolution: --- → DUPLICATE
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.
Description
•