Closed Bug 492863 Opened 16 years ago Closed 15 years ago

Gecko creates [inline element|free space] for space at beginning of HTML line

Categories

(Core :: DOM: HTML Parser, defect)

x86_64
Linux
defect
Not set
normal

Tracking

()

RESOLVED INVALID

People

(Reporter: zajec5, Unassigned)

Details

Attachments

(1 file)

User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2a1pre) Gecko/20090504 Minefield/3.6a1pre Build Identifier: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2a1pre) Gecko/20090504 Minefield/3.6a1pre If I understand W3C correctly [1], every space at beginning of line in (X)HTML should be removed. Currently Gecko doesn't do that and creates some space for text. [1] http://www.w3.org/TR/CSS2/text.html#white-space-model Reproducible: Always
Attached file Bug minimal test-case
Space in line 20 (before <p>) causes additional space.
I do not think Gecko is wrong here. The first character on line 20 is a 'ZERO WIDTH NO-BREAK SPACE' (U+FEFF) / BOM. This shouldn't be removed, according to the specification you cite.
Resolving per comment 2.
Status: UNCONFIRMED → RESOLVED
Closed: 15 years ago
Resolution: --- → INVALID
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: