Closed
Bug 291239
Opened 20 years ago
Closed 20 years ago
When there is a new line after the opener tag and one before the end tag it display a space after.
Categories
(Core :: DOM: HTML Parser, defect)
Tracking
()
People
(Reporter: mickoz, Unassigned)
References
()
Details
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.6) Gecko/20050317 Firefox/1.0.2 Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.6) Gecko/20050317 Firefox/1.0.2 By going to the page I gave as reference: http://www.emf.net/%7eestephen/htmlner/whitespacebugs.html It shows four example: <P> <U>1. This text is underlined with no carriage returns.</U> <BR> <U> 2. This text is underlined with carriage returns before and after. </U> <BR> <U> 3. This text is underlined with a carriage return before.</U> <BR> <U>4. This text is underlined with a carriage return after. </U> --- Strangely, only the 2nd one show a space at the end (for a newline), while the 4th one doesn't show a space. Reproducible: Always Steps to Reproduce: Please see the details I gave, it is about HTML code interpreter. Actual Results: There is a space inserted before the closing element for the 2nd example while rendering the HTML. Expected Results: No space inserted before the closing element for the 2nd example while rendering the HTML.
Updated•20 years ago
|
Assignee: firefox → nobody
Component: General → Layout
Product: Firefox → Core
QA Contact: general → layout
Version: unspecified → 1.0 Branch
Updated•20 years ago
|
Whiteboard: DUPEME
Comment 1•20 years ago
|
||
The problem here is that HTML isn't really sure whether it's a document language (markup describes content model) or a layout language (markup describes presentation). If the latter, it's not compatible with CSS (and Mozilla is a CSS browser, with HTML implemented in terms of CSS). If the former, then it's implying that those spaces should be removed from the DOM... which is not a layout issue.
Assignee: nobody → parser
Component: Layout → HTML: Parser
QA Contact: layout → mrbkap
Comment 2•20 years ago
|
||
*** This bug has been marked as a duplicate of 2750 ***
Status: UNCONFIRMED → RESOLVED
Closed: 20 years ago
Resolution: --- → DUPLICATE
You need to log in
before you can comment on or make changes to this bug.
Description
•