Open Bug 1417535 Opened 3 years ago Updated 2 years ago
Selection() returns wrong anchor Node/anchor Offset when selection contains nested different contenteditable context
User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:58.0) Gecko/20100101 Firefox/58.0 Build ID: 20171103003834 Steps to reproduce: This happens when contenteditable=true is nested inside contenteditable=false inside another contenteditable=true 1. See this fiddle https://jsfiddle.net/varoot/gt0xm5mn/ 2. Make a text selection over contenteditable part (-><-). For example from the word "selection" to "space" Actual results: anchorOffset is 0 anchorNode is (text) "<- space and look at values below." This is not the correct node and offset Expected results: (From Chrome and Edge) anchorOffset is 21 anchorNode is (text) "Try moving your selection over this ->"
You need to log in before you can comment on or make changes to this bug.