| 1 | <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> |
|---|
| 2 | <html xml:lang="fr" xmlns="http://www.w3.org/1999/xhtml"> |
|---|
| 3 | <head> |
|---|
| 4 | <meta http-equiv="Content-type" content="text/html; charset=utf-8" /> |
|---|
| 5 | <title>Test template</title> |
|---|
| 6 | <script type="text/javascript" src="jquery-1.3.2.js"></script> |
|---|
| 7 | <style type="text/css" media="screen"> |
|---|
| 8 | /* <![CDATA[ */ |
|---|
| 9 | /* ]]> */ |
|---|
| 10 | </style> |
|---|
| 11 | <script type="text/javascript"> |
|---|
| 12 | /* <![CDATA[ */ |
|---|
| 13 | $( document ).ready( function( e ) |
|---|
| 14 | { |
|---|
| 15 | // Firefox returns "SPAN" |
|---|
| 16 | // Internet explorer 6/7/8 returns "!" |
|---|
| 17 | alert( $( "#test" ).find( ":first" ).get( 0 ).tagName ); |
|---|
| 18 | } ); |
|---|
| 19 | /* ]]> */ |
|---|
| 20 | </script> |
|---|
| 21 | </head> |
|---|
| 22 | <body> |
|---|
| 23 | <div id="test"> |
|---|
| 24 | <!-- some comment --> |
|---|
| 25 | <span>element</span> |
|---|
| 26 | </div> |
|---|
| 27 | </body> |
|---|
| 28 | </html> |
|---|