Code Archive Skip to content Google About Google Privacy Terms
以前の記事には、outerHTMLのgetterが無かったので、追加してみました。 window.uu = { ua: { gecko: navigator.userAgent.indexOf("Gecko/") >= 0 } }; uu.ua.gecko && !HTMLElement.prototype.outerHTML && (function() { HTMLElement.prototype.__defineGetter__("outerHTML", function() { var r = docuemnt.createRange(), tub = docuemnt.createElement("div"); r.selectNode(this); tub.appendChild(r.cloneContents()); return tub.innerHTML; }); HT
2008-08-15追記: http://d.hatena.ne.jp/uupaa/20080815/1218787414 でouterHTML getter に対応しています。 Firefox用に、innerTextとouterHTMLをエミュレートするコードを書いてあったのですが(2002年頃かな?)、近頃はsetter,getter構文が廃止されているようで、代わりに__defineSetter__と__defineGetter__を使うようです。 var uud = document, uuw = window; var uu = uuw.uu = { ua: { ff: !!(navigator.userAgent.indexOf('Firefox') >= 0) // Firefox } }; if (uu.ua.ff && !HTMLElement.prototype.out
Introduction In IE4 the only way to create elements where to insert a html string that contained the markup needed for the element. This method is pretty limited but in conjunction with the W3C DOM it is really useful. It is even so powerful that the Mozilla engineers agreed to add the IE proprietary property, innerHTML, after a lot of demands from the developer community. The problem is that inne
No matter if you're a site builder or just someone surfin' for something cool, you've reached the right place. On this page you'll be able to find Dynamic HTML samples that you can use on your own pages, all the samples may be used freely for personal use or you may change the source code for your own applications. This page was designed and tested in IE5, Mozilla and Opera. Other W3C compliant br
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く