[createlink.html]
  type: testharness
  [[["createlink","http://www.google.com/"\]\] "[foo\]<a href=http://www.google.com/>bar</a>baz" compare innerHTML]
    expected: FAIL

  [[["createlink","http://www.google.com/"\]\] "foo<a href=http://www.google.com/>bar</a>[baz\]" compare innerHTML]
    expected: FAIL

  [[["createlink","http://www.google.com/"\]\] "foo<a href=http://www.google.com/>[bar</a>baz\]" compare innerHTML]
    expected: FAIL

  [[["createlink","http://www.google.com/"\]\] "<a href=otherurl>foo[bar\]baz</a>" compare innerHTML]
    expected: FAIL

  [[["createlink","http://www.google.com/"\]\] "<a href=otherurl>foo[barbaz</a>}" compare innerHTML]
    expected: FAIL

  [[["createlink","http://www.google.com/"\]\] "{<a href=otherurl>foobar\]baz</a>" compare innerHTML]
    expected: FAIL

  [[["createlink","http://www.google.com/"\]\] "foo<a href=otherurl>[bar</a>baz\]" compare innerHTML]
    expected: FAIL

  [[["createlink","http://www.google.com/"\]\] "<a href=otherurl><b>foo[bar\]baz</b></a>" compare innerHTML]
    expected: FAIL

  [[["createlink","http://www.google.com/"\]\] "<a href=otherurl><b>foo[barbaz</b></a>}" compare innerHTML]
    expected: FAIL

  [[["createlink","http://www.google.com/"\]\] "{<a href=otherurl><b>foobar\]baz</b></a>" compare innerHTML]
    expected: FAIL

  [[["createlink","http://www.google.com/"\]\] "<a name=abc>foo[bar\]baz</a>" compare innerHTML]
    expected: FAIL

  [[["createlink","http://www.google.com/"\]\] "<a name=abc><b>foo[bar\]baz</b></a>" compare innerHTML]
    expected: FAIL

