HTML Inspector automatically collapses whitespace preceding and following text.

NEW
Unassigned

Status

()

Firefox
Developer Tools: Inspector
P3
normal
5 years ago
2 years ago

People

(Reporter: Suraj Patel, Unassigned)

Tracking

23 Branch
x86_64
All
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

(Whiteboard: [polish-backlog])

Attachments

(1 attachment)

(Reporter)

Description

5 years ago
Created attachment 757059 [details]
whitespace_test.html

User Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:23.0) Gecko/20130601 Firefox/23.0 (Nightly/Aurora)
Build ID: 20130601004016

Steps to reproduce:

I altered the text within an element using the browser's Inspector. Note that changes do not actually have to be made to the text: simply selecting and deselecting the text will produce the same result.


Actual results:

Whitespace preceding and following the text was automatically removed.


Expected results:

It should not have been removed. The whitespace is usually redundant as it is automatically collapsed within the web page, but this is not the case when the element has the white-space preserved using CSS. The text within elements with the white-space preserved also exhibits this behaviour (see testcase), which cannot be overridden by any means that I know of.
(Reporter)

Updated

5 years ago
Attachment #757059 - Attachment mime type: text/plain → text/html

Updated

5 years ago
Status: UNCONFIRMED → NEW
Component: Untriaged → Developer Tools: Inspector
Ever confirmed: true

Updated

4 years ago
Duplicate of this bug: 845076

Comment 2

4 years ago
Reproduced with 2014-03-04-03-02-04-mozilla-central-firefox-30.0a1.en-US.linux-x86_64.

nof: 2012-10-01-03-06-03-mozilla-central-firefox-18.0a1.en-US.linux-x86_64 beee809b7ade
b: 2012-10-02-03-05-26-mozilla-central-firefox-18.0a1.en-US.linux-x86_64 85dd8e346102

FWIW, the feature seems to be called "Markup panel".
OS: Windows 7 → All
Whiteboard: [bugday-20140305]

Updated

2 years ago
Whiteboard: [bugday-20140305] → [polish-backlog]
Priority: -- → P3
You need to log in before you can comment on or make changes to this bug.