hasAttributeで噂になってる「baseVal」って知ってましたか?![#7516]; Fixed a bug in the simulated hasAttribute for IE due to getAttributeNode sometimes returning null. Fixed that Form.Methods and Form.Element.Methods weren’t being applied correctly to forms and form elements in S

どうぶつダイエット綱島郷太郎潜水病菅山かおるフェネックみこん六姉妹はしのえみヤホーDRMフリー松浦勝人ブログta-bo80ライター 中国語北烏山 火事上杉商店奈良漬 酒気帯び芝桜公園オリオールズZ450アドルフ・メルクレ山田優 モザイクK-17 13A最優秀ダートホースジョンベネ・ラムジーテオ・ヤンセン崖っぷちのボッツレスリー・レムケ井上堯之ハイファに戻って小鯛ささ漬け函館 放火











★1月9日現在、最近の話題はこちらです!

hasAttributeのクチコミ情報!

Prototype 1.5.1 RC1
2007-03-12T15:44:40Z
[#7516]; Fixed a bug in the simulated hasAttribute for IE due to getAttributeNode sometimes returning null. Fixed that Form.Methods and Form.Element.Methods weren’t being applied correctly to forms and form elements in Safari. ...
title or cite 属性でスマートに引用元を書いた上でjavascriptで表示する。
2007-04-18T15:48:29Z
hasattribute("title")){ //リンクなしでタイトルだけの場合 document.insertafter( cite(elm.getattribute("title")), elm); elm.removeattribute("title"); } } [/javascript] 公開しやすいように一部を多少編集して貼ってるので、このままじゃ動きませ ...
Selectors API以降のセレクタ実装 - jQueryとSizzleとuupaa-selectorと ...
2009-01-06T16:06:50Z
TAG[ATTR]が遅いのはIEもhasAttributeを実現するために頑張っているから。これは正直すごいと思った。 :linksはvisitedかどうかをきちんとチェックするためか、遅い。 書いて思いましたが、別に他の属性セレクターとか疑似クラスが遅い訳じゃないので、 ...
[opera][user.js] flash 上でマウスジェスチャーできるようにする user ...
2007-03-13T15:00:00Z
... for (var i=0,len=flashes.snapshotLength;i
Safariでaltを表示する。
2008-11-09T15:47:06Z
... E3%80%80'+b.src.substring(b.src.lastIndexOf('/')+1,b.src.length);b.title=b.alt+fname+'('+b.width+'%C3%97'+b.height+')';if(b.hasAttribute('alt')){if(/[%20%E3%80%80]$/.test(b.alt)){b.style.outline='1px%20solid%20#00ff00';f+=fname+'\n' ...
ケータイの絵文字をpcブラウザ(firefox)に表示する方法(下)
2007-03-12T11:19:35Z
au 絵文字の場合は、img タグを抽出し、localsrc 属性の部分を src 属性に置き換え、対応する絵文字番号の data スキームの url を記述します。 if (img.hasattribute('localsrc')) { var iconcode=img.getattribute('localsrc'); img. ...
Piece Framework のサンプルフォーム改変&解説
2006-11-01T11:28:40Z
if ($this->_flow->hasAttribute('user')) { $user = &$this->_flow->getAttribute('user'); $elements = $this->_getFormElements(); // Userクラスのフィールド値を要素に設定 foreach (array_keys(get_object_vars($user)) as $field) { ...
Hatenabarをかなり改良するuserchromeスクリプト書いた
2008-12-14T14:06:37Z
... function (menuItem) { var command = menuItem.getAttribute("oncommand"); if (command && !menuItem.hasAttribute("onclick")) { menuItem.setAttribute("onclick", "if (event.button == 1) {" + command + "}"); } });. ご使用は自己責任で!
[戯言][javascript] firefoxのmarquee実装
2007-04-03T07:00:00Z
hasattribute("height")) { height = this.getattribute("height"); this.outerdiv.style.height = height + "px"; } this.outerdiv.style.width = this.width; if (this.hasattribute("id")) { window[this.getattribute("id")] = this; } if (this. ...
symfony】セッションの利用~アクション~
2008-08-13T09:22:00Z
... セッションの確認 $hasnickname = $this->getuser()->hasattribute('session'); session_is_registered ('session') //セッションを破棄 $this->getuser()->getattributeholder()->remove('session'); session_unregister('session') ...
2008-10-15のツッコミ[1] (貴重な情報)
2008-10-17T01:49:55Z
その場合「className」で対象の属性値を取得できていたので、危くそのままのコードで終わらしてしまう所でした。 hasAttribute()を使用して、classNameを使うか、classを使うか処理をきりわけようと思います。 本当にありがとうございました。
[javascript]ブックマークレットとユーザーcssの連携(クリックした ...
2008-07-08T20:04:19Z
hasattribute('class')){var classname=elem.classname.split(/\b/).map(function(i)'.'+i).join('');if(!parent||array.every(childs,function(child)child.classname!=elem.classname)){s.unshift(classname);}else if(parent){var childs=parent. ...
[javascript] greasemonkeyでamazonアソシエイツidを削る その2
2007-02-28T13:38:26Z
hasattribute(attrname)) { url = element.getattribute(attrname); if (url.match(amazon_pat)) { url = url.replace(rep_pat_01, "$1\/$2"); url = url.replace(rep_pat_02, "dp\/$2"); url = url.replace(rep_pat_03, "$1\/$2"); element. ...
[Firefox][SVG]userChrome.js を使って SVG ZoomAndPan
2007-03-15T07:00:00Z
... zoomX: svgElement.width.baseVal.value / svgElement.viewBox.baseVal.width, zoomY: svgElement.height.baseVal.value / svgElement.viewBox.baseVal.height }; if ( ! svgElement.hasAttribute('__orgX') ){ svgElement.setAttribute('__orgX', ...
Firefox】パスワードを保存できないサイトでパスワードを保存する
2008-10-26T14:51:12Z
「C:\Program Files\Mozilla Firefox\components\nsLoginManager.js」をエディタで開き、 以下の3行をコメントアウト。 -------------------------------------------------------------------- if (element && element.hasAttribute("autocomplete") && ...
[JavaScript] XPathの”@checked”と CSS2の”:checked”, setAttribute ...
2008-06-20T12:18:45Z
"true" : false, "", "elm.getAttribute(\"checked\") = ", e.getAttribute("checked"), ""); if (e.hasAttribute) { rv.push("e.hasAttribute(\"checked\") = ", e.hasAttribute("checked")); } else { rv.push("e.hasAttribute = function ...
[JavaScript] IE8での変化点一覧 + 備忘録
2008-10-27T11:38:03Z
... element.getNamedItem - IE8モードなら、エラーの発生条件とか戻り値が変化。 element.setAttribute - IE8モードでなんか変わってるらしいが、MSDNのリンク先が間違ってて読めてない。 element.hasAttribute - DOM Level 1に準拠しました。10年かかっ ...
[opera]dokodemo-preview.jsがlive searchでおかしなことになっている ...
2007-10-18T14:16:18Z
hasattribute("gping") )){ return false; }. if ( ! ( anc.parentnode.localname.match( /h3/i ) ) ) { return false; }. for ( var parent = anc.parentnode; parent != null; parent = parent.parentnode ) {. if ( is_attr_val( parent, "id", ...
cite属性からリンクを生成するユーザーjavascript
2007-09-29T17:16:30Z
hasattribute('cite')){ // cite属性と同じ参照先のアンカーがないかチェック for(var j = 0,anchor;anchor = anchors[j];j++){ if(anchor.getattribute('href') == cite && anchor.getattribute('class') != 'citation') { duplicate = true; break; ...
[JavaScript][uupaa.js] querySelectorAll相当の機能を実装してみた ...
2008-09-19T14:22:48Z
function hasAttribute(node, attrName) { if (uu.ua.ie && !uu.ua.ie8) { var attr = node.getAttributeNode(attrName); return attr && attr.specified; } return node.hasAttribute(attrName); } ...
javascriptの勉強をはじめた。
2008-05-08T23:14:40Z
if (document.f1.elements[i].hasattribute("readonly")) { document.f1.elements[i].value = ""; document.f1.elements[i].removeattribute("readonly"); document.f1.elements[i].setattribute("style", "background-color: #ffffff;"); ...
予約してきた & javascriptメモ
2008-08-23T03:39:41Z
ieには hasattribute() が無い。 属性があればとってくるというif文に使おうとしたが. ieじゃ動かなかったよ。またieか、とか思ったがまーしゃーない。 getattribute(attrname)!="" でとりあえず動くようになったけど、コレじゃエラーが起こりそうな気が ...
2007-08-09T07:00:00Z
(node instanceof HTMLImageElement)) return; if (!node.hasAttribute("originalWidth")) return; node.width = node.getAttribute("originalWidth"); node.height = node.getAttribute("originalHeight"); }()); break; // ひとつ上の階層へ移動 case ...
[JavaScript][uupaa.js] uupaa-selector.js version 1.1 をリリース ...
2008-10-07T03:12:26Z
IEで E[attribute] に一部問題がある(IEにhasAttributeが実装されていないため。IE要因). や に uu.css("div[align]") がマッチしない。 IEで :empty に一部問題がある(IEはコメントノードや, 改行だけ/空行だけ ...
2007-11-26T18:15:24Z
hasattribute("class")){ pathelement += '[@class="'+node.getattribute("class")+'"]'; } else { pathelement += '['+indexof(node)+']'; } } } return pathelement; function indexof (node) { for (var i = 0, r = 1, c = node.parentnode. ...
[javascript] greasemonkeyでamazonアソシエイツのidを削る
2006-03-31T18:26:47Z
hasattribute(attrname)) { url = element.getattribute(attrname); if (url.indexof(amazon) != -1) { tokens = url.split(delim); fixedurl = "http://" + amazon; for (var j = 3; j < tokens.length; j++) { if (tokens[j] == asin) { fixedurl ...
希望のアイテム出たなら!















pathelement』をはじめ、『 hasAttribute 』の知識は広がりましたでしょうか?