[Webkit-unassigned] [Bug 225513] New: Contenteditable inverts tag nesting

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri May 7 08:01:29 PDT 2021


https://bugs.webkit.org/show_bug.cgi?id=225513

            Bug ID: 225513
           Summary: Contenteditable inverts tag nesting
           Product: WebKit
           Version: Safari 14
          Hardware: Mac (Intel)
                OS: macOS 11
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: DOM
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: victor at reedsy.com

STEPS TO REPRODUCE:
1. Add a <div> with contenteditable.
2. Add the following markup: <a href="#"><mark>link</mark></a>a.
3. In the browser window, type something between "link" and "a".

EXPECTED BEHAVIOR:
The nesting order for the tags is kept, and the new character is added outside of them.

CURRENT BEHAVIOR:
The caracter is added to the mark tag and nesting gets inverted, resulting in this:
<mark><a href="#">link</a>a</mark>a

Reproduction: https://codepen.io/vborrasc/pen/XWMrRpe

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20210507/8213991c/attachment.htm>


More information about the webkit-unassigned mailing list