Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / editing / style / apply-style-atomic.html
blob97a05b0a97d2d986d321c76170886ab7bb74a50a
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <script src="../../resources/dump-as-markup.js"></script>
5 </head>
6 <body>
7 <div id="edit" contentEditable="true">1<progress><a style>2</a></progress></div>
8 <script>
9 Markup.description('Test that WebKit does not crash when we apply style to atomic elements ' +
10 'and that the style is not applied inside atomic elements.')
12 function select(node) {
13 var range = document.createRange();
14 range.selectNodeContents(node);
15 window.getSelection().addRange(range);
18 var edit = document.getElementById("edit");
19 select(edit);
20 document.execCommand("createlink", false, "a");
21 Markup.dump(edit);
22 </script>
23 </body>
24 </html>