Inspector shows html tags backwards after a U+202E (RIGHT-TO-LEFT OVERRIDE) character

NEW
Unassigned

Status

P3
normal
4 years ago
2 months ago

People

(Reporter: mw-u2, Unassigned)

Tracking

Trunk

Firefox Tracking Flags

(Not tracked)

Details

(Whiteboard: [btpp-fix-later], URL)

Attachments

(2 attachments)

(Reporter)

Description

4 years ago
Created attachment 8555865 [details]
backwards.png

User Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:35.0) Gecko/20100101 Firefox/35.0
Build ID: 20150122214805

Steps to reproduce:

Consider the comment by Michael Vasquez's comment "No it wasn't." which is followed by two U+202E U+202E RIGHT-TO-LEFT OVERRIDE characters in utf-8 encoding. (Link to the stack overflow question containing the comment: http://stackoverflow.com/a/3314575/1671066)

Right click on the comment and select "Inspect Element (Q)".

Right click on <span class="comment-copy"> and select "edit HTML".


Actual results:

An text input box comes up and shows

<span class="comment-copy">No it wasn't.<naps/>


Expected results:

The final <span/> is backwards.

Furthermore one cannot position the cursor at the end of the line and erase <naps/>. (The cursor position seems broken)
(Reporter)

Updated

4 years ago
Severity: normal → minor
Component: Untriaged → Developer Tools: Inspector
(Reporter)

Updated

4 years ago
Summary: Inspektor shows html taks backwards after a U+202E (RIGHT-TO-LEFT OVERRIDE) character → Inspektor shows html tags backwards after a U+202E (RIGHT-TO-LEFT OVERRIDE) character
(Reporter)

Updated

4 years ago
Summary: Inspektor shows html tags backwards after a U+202E (RIGHT-TO-LEFT OVERRIDE) character → Inspector shows html tags backwards after a U+202E (RIGHT-TO-LEFT OVERRIDE) character
(Reporter)

Comment 1

4 years ago
I want to take back this part: "Furthermore one cannot position the cursor at the end of the line and erase <naps/>. (The cursor position seems broken)", since after more thinking I think the cursor moves correctly. It starts by moving left to right, then it switches to right-to-left.

Comment 2

4 years ago
User Agent: Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:38.0) Gecko/20100101 Firefox/38.0
Build ID: 20150203030243

Was able to replicate the bug.
Inspector bug triage. Filter on CLIMBING SHOES.

Confirmed on Nightly, FF48.
Severity: minor → normal
Status: UNCONFIRMED → NEW
Ever confirmed: true
OS: Windows 7 → All
Priority: -- → P3
Hardware: x86_64 → All
Whiteboard: [btpp-fix-later]
Version: 35 Branch → Trunk
Created attachment 8741508 [details]
bug1126799-example.html

Reduced test case highlighting the issue
STRs:
- open https://bugzilla.mozilla.org/attachment.cgi?id=8741508
- inspect the div containing "test"
- edit as HTML

ER: The editor should display <span>test&#8238; &#x202e;</span>
AR: The editor displays <span>test<naps/>

Inspector bug triage. Filter on CLIMBING SHOES.

Updated

2 months ago
Product: Firefox → DevTools
You need to log in before you can comment on or make changes to this bug.