Closed Bug 1529837 Opened 6 years ago Closed 6 years ago

Should display blank space only in case of &nbsp

Categories

(Firefox :: Untriaged, defect)

67 Branch
defect
Not set
normal

Tracking

()

RESOLVED INCOMPLETE

People

(Reporter: sanjay_thavi, Unassigned, NeedInfo)

Details

User Agent: Mozilla/5.0 (Windows NT 5.1; rv:49.0) Gecko/20100101 Firefox/49.0

Steps to reproduce:

even if there is no &nbsp in the html code browser is introducing by itself blank spaces between the html elements , so it is becoming difficult to access the elements with nextSibling nextChild etc with javascript and code does not work

please put blank spaces only if we typed &nbsp in the html coding
do not put blank space if the next element is typed on the next line
this problem is with all versions of the firefox.

Actual results:

your browser is displaying blank spaces if there is space or next line between 2 html elements so nextSibling, nextChild in java returning #text object instead of what we intended

Expected results:

Your browser should not display blank spaces in browser in case of blank space or white space or carriage return or new line in html code.

Your browser should display blank space only in case of &nbsp

due to this problem we are unable to use your browser because nextSibling, nextChild picking your white spaces as #text object this is unintended and code fails in your browser.. so we are forced to use internet explorer only

Please tell us which exact Firefox version this is about.
Please provide a minimal, self-contained, complete testcase that shows the problem.

Flags: needinfo?(sanjay_thavi)
Summary: whitespaces → Should display blank space only in case of &nbsp

Thank for reporting this issue.

Can you provide a little bit detailed steps to reproduce?

Thanks

Not much we can do here without more information. Please provide more and we will reopen it.

Status: UNCONFIRMED → RESOLVED
Closed: 6 years ago
Resolution: --- → INCOMPLETE
You need to log in before you can comment on or make changes to this bug.