Dragging & dropping a file creates an attachment element even when it's disabled
[WebKit-https.git] / LayoutTests / fast / attachment / attachment-icon-from-file-extension-expected.html
1 <!DOCTYPE html><!-- webkit-test-runner [ enableAttachmentElement=true ] -->
2 <html>
3 <body>
4 <attachment></attachment>
5 <script>
6 if (window.internals)
7     file = window.internals.createFile("resources/test-file.txt");
8
9 var attachments = document.getElementsByTagName("attachment");
10 for (var i = 0; i < attachments.length; i++)
11     attachments[i].file = file;
12 </script>
13 </body>
14 </html>