Open Bug 1126799 Opened 11 years ago Updated 3 years ago

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

Categories

(DevTools :: Inspector, defect, P3)

defect

Tracking

(Not tracked)

People

(Reporter: mw-u2, Unassigned)

References

(Blocks 1 open bug, )

Details

(Whiteboard: [btpp-fix-later])

Attachments

(2 files)

Attached image 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)
Severity: normal → minor
Component: Untriaged → Developer Tools: Inspector
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
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
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.
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
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.
Product: Firefox → DevTools
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: