OLD | NEW |
1 Test to make sure we preserve styles when removing links | 1 Test to make sure we preserve styles when removing links |
2 | 2 |
3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE
". | 3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE
". |
4 | 4 |
5 | 5 |
6 PASS unlink on all of "hello <b>world</b>" yields "hello <b>world</b>" | 6 PASS unlink on all of "hello <b>world</b>" yields "hello <b>world</b>" |
7 PASS unlink on all of "<a href="http://webkit.org/"><u>hello world</u></a>" yiel
ds "<u>hello world</u>" | 7 PASS unlink on all of "<a href="http://webkit.org/"><u>hello world</u></a>" yiel
ds "<u>hello world</u>" |
8 PASS unlink on all of "hello <i><a href="http://webkit.org/">world</a></i>" yiel
ds "hello <i>world</i>" | 8 PASS unlink on all of "hello <i><a href="http://webkit.org/">world</a></i>" yiel
ds "hello <i>world</i>" |
9 PASS unlink on all of "hello <a href="http://webkit.org/" style="font-weight: bo
ld;">world</a>" yields "hello <b>world</b>" | 9 PASS unlink on all of "hello <a href="http://webkit.org/" style="font-weight: bo
ld;">world</a>" yields "hello <b>world</b>" |
10 PASS unlink on all of "hello <a href="http://webkit.org/" style="color: blue;">w
orld</a> WebKit" yields "hello <font color="#0000ff">world</font> WebKit" | 10 PASS unlink on all of "hello <a href="http://webkit.org/" style="color: blue;">w
orld</a> WebKit" yields "hello <font class="Apple-style-span" color="#0000ff">wo
rld</font> WebKit" |
11 PASS unlink on all of "hello <a href="http://webkit.org/" style="color: blue; di
splay: block;">world</a> WebKit" yields "hello <font color="#0000ff"><span style
="display: block;">world</span></font> WebKit" | 11 PASS unlink on all of "hello <a href="http://webkit.org/" style="color: blue; di
splay: block;">world</a> WebKit" yields "hello <font class="Apple-style-span" co
lor="#0000ff"><span class="Apple-style-span" style="display: block;">world</span
></font> WebKit" |
12 PASS unlink on last two words of "<a href="http://webkit.org/" style="font-size:
large;">hello world</a> WebKit" yields "<a href="http://webkit.org/" style="fon
t-size: large;">hello </a><font size="4">world</font> WebKit" | 12 PASS unlink on last two words of "<a href="http://webkit.org/" style="font-size:
large;">hello world</a> WebKit" yields "<a href="http://webkit.org/" style="fon
t-size: large;">hello </a><font class="Apple-style-span" size="4">world</font> W
ebKit" |
13 PASS unlink on last two words of "hello <a href="http://webkit.org/" style="font
-size: large;">world <span style="font-size: small; ">WebKit</span> rocks</a>" y
ields "hello <a href="http://webkit.org/"><font size="4">world </font></a><span
style="font-size: small; ">WebKit</span><font size="4"> rocks</font>" | 13 PASS unlink on last two words of "hello <a href="http://webkit.org/" style="font
-size: large;">world <span style="font-size: small; ">WebKit</span> rocks</a>" y
ields "hello <a href="http://webkit.org/"><font class="Apple-style-span" size="4
">world </font></a><span style="font-size: small; ">WebKit</span><font class="Ap
ple-style-span" size="4"> rocks</font>" |
14 PASS unlink on first two words of "hello <a href="http://webkit.org/" style="fon
t-style: italic;"><b>world</b> WebKit</a>" yields "hello <b style="font-style: i
talic; ">world</b><a href="http://webkit.org/"><i> WebKit</i></a>" | 14 PASS unlink on first two words of "hello <a href="http://webkit.org/" style="fon
t-style: italic;"><b>world</b> WebKit</a>" yields "hello <b style="font-style: i
talic; ">world</b><a href="http://webkit.org/"><i> WebKit</i></a>" |
15 PASS unlink on all of "<a href="http://webkit.org/" style="background-color: yel
low;"><div>hello</div><div>world</div></a>" yields "<div style="background-color
: yellow; ">hello</div><div style="background-color: yellow; ">world</div>" | 15 PASS unlink on all of "<a href="http://webkit.org/" style="background-color: yel
low;"><div>hello</div><div>world</div></a>" yields "<div style="background-color
: yellow; ">hello</div><div style="background-color: yellow; ">world</div>" |
16 PASS unlink on all of "hello<a href="http://webkit.org/" style="background-color
: yellow;"><div>world</div></a>WebKit" yields "hello<div style="background-color
: yellow; ">world</div><span style="background-color: yellow;">WebKit</span>" | 16 PASS unlink on all of "hello<a href="http://webkit.org/" style="background-color
: yellow;"><div>world</div></a>WebKit" yields "hello<div style="background-color
: yellow; ">world</div><span class="Apple-style-span" style="background-color: y
ellow;">WebKit</span>" |
17 PASS unlink on last two words of "<a href="http://webkit.org/" style="font-weigh
t: bold;"><div>hello</div><div>world WebKit</div></a>" yields "<a href="http://w
ebkit.org/"><div style="font-weight: bold; ">hello</div></a><div style="font-wei
ght: bold; ">world WebKit</div>" | 17 PASS unlink on last two words of "<a href="http://webkit.org/" style="font-weigh
t: bold;"><div>hello</div><div>world WebKit</div></a>" yields "<a href="http://w
ebkit.org/"><div style="font-weight: bold; ">hello</div></a><div style="font-wei
ght: bold; ">world WebKit</div>" |
18 PASS unlink on last word of "<a href="http://webkit.org/" style="font-weight: bo
ld;"><div style="font-weight: normal;">hello</div><div>world</div></a>" yields "
<a href="http://webkit.org/"><div style="font-weight: normal; ">hello</div></a><
div style="font-weight: bold; ">world</div>" | 18 PASS unlink on last word of "<a href="http://webkit.org/" style="font-weight: bo
ld;"><div style="font-weight: normal;">hello</div><div>world</div></a>" yields "
<a href="http://webkit.org/"><div style="font-weight: normal; ">hello</div></a><
div style="font-weight: bold; ">world</div>" |
19 PASS successfullyParsed is true | 19 PASS successfullyParsed is true |
20 | 20 |
21 TEST COMPLETE | 21 TEST COMPLETE |
22 | 22 |
OLD | NEW |