root / trunk / web / dojo / dojox / data / dom.js @ 12
History | View | Annotate | Download (1.44 KB)
1 |
/*
|
---|---|
2 |
Copyright (c) 2004-2010, The Dojo Foundation All Rights Reserved.
|
3 |
Available via Academic Free License >= 2.1 OR the modified BSD license.
|
4 |
see: http://dojotoolkit.org/license for details
|
5 |
*/
|
6 |
|
7 |
|
8 |
if(!dojo._hasResource["dojox.data.dom"]){ |
9 |
dojo._hasResource["dojox.data.dom"]=true; |
10 |
dojo.provide("dojox.data.dom");
|
11 |
dojo.require("dojox.xml.parser");
|
12 |
dojo.deprecated("dojox.data.dom","Use dojox.xml.parser instead.","2.0"); |
13 |
dojox.data.dom.createDocument=function(_1,_2){ |
14 |
dojo.deprecated("dojox.data.dom.createDocument()","Use dojox.xml.parser.parse() instead.","2.0"); |
15 |
try{
|
16 |
return dojox.xml.parser.parse(_1,_2);
|
17 |
} |
18 |
catch(e){
|
19 |
return null; |
20 |
} |
21 |
}; |
22 |
dojox.data.dom.textContent=function(_3,_4){ |
23 |
dojo.deprecated("dojox.data.dom.textContent()","Use dojox.xml.parser.textContent() instead.","2.0"); |
24 |
if(arguments.length>1){ |
25 |
return dojox.xml.parser.textContent(_3,_4);
|
26 |
}else{
|
27 |
return dojox.xml.parser.textContent(_3);
|
28 |
} |
29 |
}; |
30 |
dojox.data.dom.replaceChildren=function(_5,_6){ |
31 |
dojo.deprecated("dojox.data.dom.replaceChildren()","Use dojox.xml.parser.replaceChildren() instead.","2.0"); |
32 |
dojox.xml.parser.replaceChildren(_5,_6); |
33 |
}; |
34 |
dojox.data.dom.removeChildren=function(_7){ |
35 |
dojo.deprecated("dojox.data.dom.removeChildren()","Use dojox.xml.parser.removeChildren() instead.","2.0"); |
36 |
return dojox.xml.parser.removeChildren(_7);
|
37 |
}; |
38 |
dojox.data.dom.innerXML=function(_8){ |
39 |
dojo.deprecated("dojox.data.dom.innerXML()","Use dojox.xml.parser.innerXML() instead.","2.0"); |
40 |
return dojox.xml.parser.innerXML(_8);
|
41 |
}; |
42 |
} |