| 1 | <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> |
| 2 | <html xmlns="http://www.w3.org/1999/xhtml"> |
| 3 | <head> |
| 4 | <title>CKEDITOR.dom.element</title> |
| 5 | <link rel="stylesheet" type="text/css" href="../../test.css" /> |
| 6 | <script type="text/javascript" src="../../../../ckeditor_source.js"></script> <!-- %REMOVE_LINE% |
| 7 | <script type="text/javascript" src="../../../ckeditor.js"></script> |
| 8 | %REMOVE_LINE% --> |
| 9 | <script type="text/javascript" src="../../test.js"></script> |
| 10 | <script type="text/javascript"> |
| 11 | //<![CDATA[ |
| 12 | |
| 13 | CKEDITOR.test.addTestCase( (function() |
| 14 | { |
| 15 | // Local reference to the "assert" object. |
| 16 | var assert = CKEDITOR.test.assert; |
| 17 | |
| 18 | return { |
| 19 | |
| 20 | test_setAttribute_3008: function() |
| 21 | { |
| 22 | if ( CKEDITOR.env.ie ) |
| 23 | { |
| 24 | var element = CKEDITOR.dom.element.createFromHtml('<input type="checkbox" />'); |
| 25 | element.setAttribute( 'name', 'name' ); |
| 26 | assert.areSame( 'name', element.getAttribute( 'name' ) , 'element attribute "name" is not matched.' ); |
| 27 | } |
| 28 | |
| 29 | }, |
| 30 | |
| 31 | name : document.title |
| 32 | }; |
| 33 | })() ); |
| 34 | |
| 35 | //]]> |
| 36 | </script> |
| 37 | </head> |
| 38 | <body></body> |
| 39 | </html> |