/*
	Copyright (c) 2004-2016, The JS Foundation All Rights Reserved.
	Available via Academic Free License >= 2.1 OR the modified BSD license.
	see: http://dojotoolkit.org/license for details
*/

//>>built
define("dojo/dom-prop","exports ./_base/kernel ./sniff ./_base/lang ./dom ./dom-style ./dom-construct ./_base/connect".split(" "),function(f,r,g,t,l,u,k,m){function n(a){var d="";a=a.childNodes;for(var c=0,b;b=a[c];c++)8!=b.nodeType&&(d=1==b.nodeType?d+n(b):d+b.nodeValue);return d}var h={},v=1,p=r._scopeName+"attrid";g.add("dom-textContent",function(a,d,c){return"textContent"in c});f.names={"class":"className","for":"htmlFor",tabindex:"tabIndex",readonly:"readOnly",colspan:"colSpan",frameborder:"frameBorder",
rowspan:"rowSpan",textcontent:"textContent",valuetype:"valueType"};f.get=function(a,d){a=l.byId(a);var c=d.toLowerCase();c=f.names[c]||d;return"textContent"!=c||g("dom-textContent")?a[c]:n(a)};f.set=function(a,d,c){a=l.byId(a);if(2==arguments.length&&"string"!=typeof d){for(var b in d)f.set(a,b,d[b]);return a}b=d.toLowerCase();b=f.names[b]||d;if("style"==b&&"string"!=typeof c)return u.set(a,c),a;if("innerHTML"==b)return g("ie")&&a.tagName.toLowerCase()in{col:1,colgroup:1,table:1,tbody:1,tfoot:1,thead:1,
tr:1,title:1}?(k.empty(a),a.appendChild(k.toDom(c,a.ownerDocument))):a[b]=c,a;if("textContent"==b&&!g("dom-textContent"))return k.empty(a),a.appendChild(a.ownerDocument.createTextNode(c)),a;if(t.isFunction(c)){var e=a[p];e||(e=v++,a[p]=e);h[e]||(h[e]={});var q=h[e][b];if(q)m.disconnect(q);else try{delete a[b]}catch(w){}c?h[e][b]=m.connect(a,b,c):a[b]=null;return a}a[b]=c;return a}});