[typing-around-link-element-at-non-collapsed-selection.tentative.html?target=DesignMode&child=b]
  [Inserting "XY" after deleting text after middle of a link containing <b> (Direct typing) in <p><a href="about:blank"><b>ab[cd</b></a>de\]f</p>]
    expected: FAIL

  [Inserting "XY" after deleting text before middle of a link containing <b> (Direct typing) in <p>a[bc<a href="about:blank"><b>de\]f</b></a></p>]
    expected: FAIL

  [Inserting "XY" after deleting first character of a link containing <b> (Backspace) in <p><a href="about:blank"><b>[z\]abc</b></a></p>]
    expected: FAIL

  [Inserting "XY" after deleting last character in a non-collapsed range of a link containing <b> (Backspace) in <p><a href="about:blank"><b>abc[d\]</b></a></p>]
    expected: FAIL

  [Inserting "XY" after deleting text after middle of a link containing <b> (Backspace) in <p><a href="about:blank"><b>ab[cd</b></a>de\]f</p>]
    expected: FAIL

  [Inserting "XY" after deleting text before middle of a link containing <b> (Backspace) in <p>a[bc<a href="about:blank"><b>de\]f</b></a></p>]
    expected: FAIL

  [Inserting "XY" after deleting first character of a link containing <b> (Delete) in <p><a href="about:blank"><b>[z\]abc</b></a></p>]
    expected: FAIL

  [Inserting "XY" after deleting last character in a non-collapsed range of a link containing <b> (Delete) in <p><a href="about:blank"><b>abc[d\]</b></a></p>]
    expected: FAIL

  [Inserting "XY" after deleting text after middle of a link containing <b> (Delete) in <p><a href="about:blank"><b>ab[cd</b></a>de\]f</p>]
    expected: FAIL

  [Inserting "XY" after deleting text before middle of a link containing <b> (Delete) in <p>a[bc<a href="about:blank"><b>de\]f</b></a></p>]
    expected: FAIL

  [Inserting "XY" after deleting first character of a link containing <b> (execCommand("delete")) in <p><a href="about:blank"><b>[z\]abc</b></a></p>]
    expected: FAIL

  [Inserting "XY" after deleting last character in a non-collapsed range of a link containing <b> (execCommand("delete")) in <p><a href="about:blank"><b>abc[d\]</b></a></p>]
    expected: FAIL

  [Inserting "XY" after deleting text after middle of a link containing <b> (execCommand("delete")) in <p><a href="about:blank"><b>ab[cd</b></a>de\]f</p>]
    expected: FAIL

  [Inserting "XY" after deleting text before middle of a link containing <b> (execCommand("delete")) in <p>a[bc<a href="about:blank"><b>de\]f</b></a></p>]
    expected: FAIL

  [Inserting "XY" after deleting first character of a link containing <b> (execCommand("forwarddelete")) in <p><a href="about:blank"><b>[z\]abc</b></a></p>]
    expected: FAIL

  [Inserting "XY" after deleting last character in a non-collapsed range of a link containing <b> (execCommand("forwarddelete")) in <p><a href="about:blank"><b>abc[d\]</b></a></p>]
    expected: FAIL

  [Inserting "XY" after deleting text after middle of a link containing <b> (execCommand("forwarddelete")) in <p><a href="about:blank"><b>ab[cd</b></a>de\]f</p>]
    expected: FAIL

  [Inserting "XY" after deleting text before middle of a link containing <b> (execCommand("forwarddelete")) in <p>a[bc<a href="about:blank"><b>de\]f</b></a></p>]
    expected: FAIL


[typing-around-link-element-at-non-collapsed-selection.tentative.html?target=DesignMode&parent=b&child=i]
  [Inserting "XY" after deleting text after middle of a link in <b> and containing <i> (Direct typing) in <p><b><a href="about:blank"><i>ab[cd</i></a>de\]f</b></p>]
    expected: FAIL

  [Inserting "XY" after deleting text before middle of a link in <b> and containing <i> (Direct typing) in <p><b>a[bc<a href="about:blank"><i>de\]f</i></a></b></p>]
    expected: FAIL

  [Inserting "XY" after deleting first character of a link in <b> and containing <i> (Backspace) in <p><b><a href="about:blank"><i>[z\]abc</i></a></b></p>]
    expected: FAIL

  [Inserting "XY" after deleting last character in a non-collapsed range of a link in <b> and containing <i> (Backspace) in <p><b><a href="about:blank"><i>abc[d\]</i></a></b></p>]
    expected: FAIL

  [Inserting "XY" after deleting text after middle of a link in <b> and containing <i> (Backspace) in <p><b><a href="about:blank"><i>ab[cd</i></a>de\]f</b></p>]
    expected: FAIL

  [Inserting "XY" after deleting text before middle of a link in <b> and containing <i> (Backspace) in <p><b>a[bc<a href="about:blank"><i>de\]f</i></a></b></p>]
    expected: FAIL

  [Inserting "XY" after deleting first character of a link in <b> and containing <i> (Delete) in <p><b><a href="about:blank"><i>[z\]abc</i></a></b></p>]
    expected: FAIL

  [Inserting "XY" after deleting last character in a non-collapsed range of a link in <b> and containing <i> (Delete) in <p><b><a href="about:blank"><i>abc[d\]</i></a></b></p>]
    expected: FAIL

  [Inserting "XY" after deleting text after middle of a link in <b> and containing <i> (Delete) in <p><b><a href="about:blank"><i>ab[cd</i></a>de\]f</b></p>]
    expected: FAIL

  [Inserting "XY" after deleting text before middle of a link in <b> and containing <i> (Delete) in <p><b>a[bc<a href="about:blank"><i>de\]f</i></a></b></p>]
    expected: FAIL

  [Inserting "XY" after deleting first character of a link in <b> and containing <i> (execCommand("delete")) in <p><b><a href="about:blank"><i>[z\]abc</i></a></b></p>]
    expected: FAIL

  [Inserting "XY" after deleting last character in a non-collapsed range of a link in <b> and containing <i> (execCommand("delete")) in <p><b><a href="about:blank"><i>abc[d\]</i></a></b></p>]
    expected: FAIL

  [Inserting "XY" after deleting text after middle of a link in <b> and containing <i> (execCommand("delete")) in <p><b><a href="about:blank"><i>ab[cd</i></a>de\]f</b></p>]
    expected: FAIL

  [Inserting "XY" after deleting text before middle of a link in <b> and containing <i> (execCommand("delete")) in <p><b>a[bc<a href="about:blank"><i>de\]f</i></a></b></p>]
    expected: FAIL

  [Inserting "XY" after deleting first character of a link in <b> and containing <i> (execCommand("forwarddelete")) in <p><b><a href="about:blank"><i>[z\]abc</i></a></b></p>]
    expected: FAIL

  [Inserting "XY" after deleting last character in a non-collapsed range of a link in <b> and containing <i> (execCommand("forwarddelete")) in <p><b><a href="about:blank"><i>abc[d\]</i></a></b></p>]
    expected: FAIL

  [Inserting "XY" after deleting text after middle of a link in <b> and containing <i> (execCommand("forwarddelete")) in <p><b><a href="about:blank"><i>ab[cd</i></a>de\]f</b></p>]
    expected: FAIL

  [Inserting "XY" after deleting text before middle of a link in <b> and containing <i> (execCommand("forwarddelete")) in <p><b>a[bc<a href="about:blank"><i>de\]f</i></a></b></p>]
    expected: FAIL


[typing-around-link-element-at-non-collapsed-selection.tentative.html?target=ContentEditable&parent=b&child=i]
  [Inserting "XY" after deleting text after middle of a link in <b> and containing <i> (Direct typing) in <p><b><a href="about:blank"><i>ab[cd</i></a>de\]f</b></p>]
    expected: FAIL

  [Inserting "XY" after deleting text before middle of a link in <b> and containing <i> (Direct typing) in <p><b>a[bc<a href="about:blank"><i>de\]f</i></a></b></p>]
    expected: FAIL

  [Inserting "XY" after deleting first character of a link in <b> and containing <i> (Backspace) in <p><b><a href="about:blank"><i>[z\]abc</i></a></b></p>]
    expected: FAIL

  [Inserting "XY" after deleting last character in a non-collapsed range of a link in <b> and containing <i> (Backspace) in <p><b><a href="about:blank"><i>abc[d\]</i></a></b></p>]
    expected: FAIL

  [Inserting "XY" after deleting text after middle of a link in <b> and containing <i> (Backspace) in <p><b><a href="about:blank"><i>ab[cd</i></a>de\]f</b></p>]
    expected: FAIL

  [Inserting "XY" after deleting text before middle of a link in <b> and containing <i> (Backspace) in <p><b>a[bc<a href="about:blank"><i>de\]f</i></a></b></p>]
    expected: FAIL

  [Inserting "XY" after deleting first character of a link in <b> and containing <i> (Delete) in <p><b><a href="about:blank"><i>[z\]abc</i></a></b></p>]
    expected: FAIL

  [Inserting "XY" after deleting last character in a non-collapsed range of a link in <b> and containing <i> (Delete) in <p><b><a href="about:blank"><i>abc[d\]</i></a></b></p>]
    expected: FAIL

  [Inserting "XY" after deleting text after middle of a link in <b> and containing <i> (Delete) in <p><b><a href="about:blank"><i>ab[cd</i></a>de\]f</b></p>]
    expected: FAIL

  [Inserting "XY" after deleting text before middle of a link in <b> and containing <i> (Delete) in <p><b>a[bc<a href="about:blank"><i>de\]f</i></a></b></p>]
    expected: FAIL

  [Inserting "XY" after deleting first character of a link in <b> and containing <i> (execCommand("delete")) in <p><b><a href="about:blank"><i>[z\]abc</i></a></b></p>]
    expected: FAIL

  [Inserting "XY" after deleting last character in a non-collapsed range of a link in <b> and containing <i> (execCommand("delete")) in <p><b><a href="about:blank"><i>abc[d\]</i></a></b></p>]
    expected: FAIL

  [Inserting "XY" after deleting text after middle of a link in <b> and containing <i> (execCommand("delete")) in <p><b><a href="about:blank"><i>ab[cd</i></a>de\]f</b></p>]
    expected: FAIL

  [Inserting "XY" after deleting text before middle of a link in <b> and containing <i> (execCommand("delete")) in <p><b>a[bc<a href="about:blank"><i>de\]f</i></a></b></p>]
    expected: FAIL

  [Inserting "XY" after deleting first character of a link in <b> and containing <i> (execCommand("forwarddelete")) in <p><b><a href="about:blank"><i>[z\]abc</i></a></b></p>]
    expected: FAIL

  [Inserting "XY" after deleting last character in a non-collapsed range of a link in <b> and containing <i> (execCommand("forwarddelete")) in <p><b><a href="about:blank"><i>abc[d\]</i></a></b></p>]
    expected: FAIL

  [Inserting "XY" after deleting text after middle of a link in <b> and containing <i> (execCommand("forwarddelete")) in <p><b><a href="about:blank"><i>ab[cd</i></a>de\]f</b></p>]
    expected: FAIL

  [Inserting "XY" after deleting text before middle of a link in <b> and containing <i> (execCommand("forwarddelete")) in <p><b>a[bc<a href="about:blank"><i>de\]f</i></a></b></p>]
    expected: FAIL


[typing-around-link-element-at-non-collapsed-selection.tentative.html?target=ContentEditable&child=b]
  [Inserting "XY" after deleting text after middle of a link containing <b> (Direct typing) in <p><a href="about:blank"><b>ab[cd</b></a>de\]f</p>]
    expected: FAIL

  [Inserting "XY" after deleting text before middle of a link containing <b> (Direct typing) in <p>a[bc<a href="about:blank"><b>de\]f</b></a></p>]
    expected: FAIL

  [Inserting "XY" after deleting first character of a link containing <b> (Backspace) in <p><a href="about:blank"><b>[z\]abc</b></a></p>]
    expected: FAIL

  [Inserting "XY" after deleting last character in a non-collapsed range of a link containing <b> (Backspace) in <p><a href="about:blank"><b>abc[d\]</b></a></p>]
    expected: FAIL

  [Inserting "XY" after deleting text after middle of a link containing <b> (Backspace) in <p><a href="about:blank"><b>ab[cd</b></a>de\]f</p>]
    expected: FAIL

  [Inserting "XY" after deleting text before middle of a link containing <b> (Backspace) in <p>a[bc<a href="about:blank"><b>de\]f</b></a></p>]
    expected: FAIL

  [Inserting "XY" after deleting first character of a link containing <b> (Delete) in <p><a href="about:blank"><b>[z\]abc</b></a></p>]
    expected: FAIL

  [Inserting "XY" after deleting last character in a non-collapsed range of a link containing <b> (Delete) in <p><a href="about:blank"><b>abc[d\]</b></a></p>]
    expected: FAIL

  [Inserting "XY" after deleting text after middle of a link containing <b> (Delete) in <p><a href="about:blank"><b>ab[cd</b></a>de\]f</p>]
    expected: FAIL

  [Inserting "XY" after deleting text before middle of a link containing <b> (Delete) in <p>a[bc<a href="about:blank"><b>de\]f</b></a></p>]
    expected: FAIL

  [Inserting "XY" after deleting first character of a link containing <b> (execCommand("delete")) in <p><a href="about:blank"><b>[z\]abc</b></a></p>]
    expected: FAIL

  [Inserting "XY" after deleting last character in a non-collapsed range of a link containing <b> (execCommand("delete")) in <p><a href="about:blank"><b>abc[d\]</b></a></p>]
    expected: FAIL

  [Inserting "XY" after deleting text after middle of a link containing <b> (execCommand("delete")) in <p><a href="about:blank"><b>ab[cd</b></a>de\]f</p>]
    expected: FAIL

  [Inserting "XY" after deleting text before middle of a link containing <b> (execCommand("delete")) in <p>a[bc<a href="about:blank"><b>de\]f</b></a></p>]
    expected: FAIL

  [Inserting "XY" after deleting first character of a link containing <b> (execCommand("forwarddelete")) in <p><a href="about:blank"><b>[z\]abc</b></a></p>]
    expected: FAIL

  [Inserting "XY" after deleting last character in a non-collapsed range of a link containing <b> (execCommand("forwarddelete")) in <p><a href="about:blank"><b>abc[d\]</b></a></p>]
    expected: FAIL

  [Inserting "XY" after deleting text after middle of a link containing <b> (execCommand("forwarddelete")) in <p><a href="about:blank"><b>ab[cd</b></a>de\]f</p>]
    expected: FAIL

  [Inserting "XY" after deleting text before middle of a link containing <b> (execCommand("forwarddelete")) in <p>a[bc<a href="about:blank"><b>de\]f</b></a></p>]
    expected: FAIL

