|
Revision 4798, 1.2 kB
(checked in by BryanForbes, 2 years ago)
|
|
Merged html-refactor to trunk.
|
-
Property svn:eol-style set to
native
|
| Line | |
|---|
| 1 | <?xml version="1.0" encoding="UTF-8"?> |
|---|
| 2 | <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "DTD/xhtml1-strict.dtd"> |
|---|
| 3 | <html xmlns="http://www.w3.org/1999/xhtml" xmlns:dojo="http://www.dojotoolkit.org/2004/dojoml" xmlns:xlink="http://www.w3.org/1999/xlink" xml:lang="en" lang="en"> |
|---|
| 4 | <head> |
|---|
| 5 | <title>Dojo: Test of dojo.dom</title> |
|---|
| 6 | <!--[if lt IE 5.5]> |
|---|
| 7 | <script language="JavaScript" type="text/javascript" src="http://burstproject.org/burst/fix_ecma.js"></script> |
|---|
| 8 | <![endif]--> |
|---|
| 9 | <script type="text/javascript"> |
|---|
| 10 | |
|---|
| 11 | djConfig = { |
|---|
| 12 | isDebug: true |
|---|
| 13 | }; |
|---|
| 14 | </script> |
|---|
| 15 | <script type="text/javascript" src="../dojo.js"></script> |
|---|
| 16 | <script type="text/javascript"> |
|---|
| 17 | dojo.require("dojo.dom"); |
|---|
| 18 | dojo.addOnLoad(function(e) { |
|---|
| 19 | var xmlText = '<response status="ok" />'; |
|---|
| 20 | var xml = dojo.dom.createDocumentFromText(xmlText); |
|---|
| 21 | dojo.debug(xml); |
|---|
| 22 | if(xml) dojo.debug(xml.document); |
|---|
| 23 | else dojo.debug("no xml.document"); |
|---|
| 24 | if(xml) dojo.debug(xml.firstChild); |
|---|
| 25 | else dojo.debug("no xml.firstChild"); |
|---|
| 26 | if(xml && xml.firstChild) dojo.debug(xml.firstChild.tagName); |
|---|
| 27 | else dojo.debug("no xml.firstChild.tagName"); |
|---|
| 28 | }); |
|---|
| 29 | </script> |
|---|
| 30 | <style type="text/css"> |
|---|
| 31 | </style> |
|---|
| 32 | </head> |
|---|
| 33 | <body> |
|---|
| 34 | <div id="test"> |
|---|
| 35 | </div> |
|---|
| 36 | </body> |
|---|
| 37 | </html> |
|---|