2008-09-01から1ヶ月間の記事一覧

つまみぐいIE8(CSS編)@リクリ

Re:Creator's Chat 1st リクリことRe:Creator’s Kansaiのイベント「Re:Creator's Chat 1st」でしゃべってきました。内容は技術系のカンファレンスの言葉を借りるならLTで「つまぐいIE8(CSS編)」というタイトルお話させていただきました。 デザイナーさんなど…

window.toStaticHTML()

IE8からwindow.toStaticHTML()メソッドが追加されました。引数に与えられたHTMLの断片からscriptタグや、onclick属性などのDynamic HTMLの要素を削除するためのメソッドです。 XDomainRequestのレスポンスに、意図しないscriptタグなどが入ってきたときにま…

IE8で採用されたconstructorプロパティ

constructorが実装されている件 alert('constructor' in window); // true alert(window.constructor); // [object Window] div = document.createElement('div'); alert('constructor' in div); // true alert(div.constructor); // [object HTMLDivElement…

IE8でもEventオブジェクトのとり方は一緒

Eventオブジェクトのとり方 とりあえず現行通りに、window.eventオブジェクトでいけるらしい。ここは、IE路線を貫くのね…。 検証コード <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="ja" lang="ja"> </html>

Re:Creator's Chat#1やります

珍しくイベント告知のエントリーです。2008/09/27 19:00に大阪は新大阪(新大阪シーステージ)でRe:Creator'sというWEBクリエーターさんの集まり主催のイベントがあります。 イベントの内容としては、5〜10分程度のショートプレゼン大会でWEBに関するネタを披…

localStorageとsessionStorage

IE8からどうやらlocalStorageとsessionStorageに対応する模様。これらStorage系のオブジェクトは、WHATWGのWeb Application1.0仕様のClient Side Storageを実装したものだということを祈ります。ドキュメントは、この辺で(HTML Standard)、簡単に言うと、ブ…

Chromeのconsoleオブジェクトとデバッグ

Chromeには、consoleというデバッグに便利なオブジェクトがある。9月4日(木)時点でのconsoleオブジェクトには、error, info, log, warnメソッドがあるようで利用方法は、Firebugのそれに近い。 ソース string = "Hello World!!"; object = {}; object.foo = …

IE8β2のHTMLDivElementのそれ

取得方法 <html> <head> <meta http-equiv="X-UA-Compatible" content="IE=8" > </head> <body> <div id="hoge"></div> <script type="text/javascript"> var hoge = document.getElementById("hoge"); for(i in hoge){ document.write(i, ', '); }; </script> </body> </html> 結果 nextSibling, onresizeend, onrowenter, ariaP…

Chromeのnavigatorオブジェクト

navigator appName Netscape plugins [object PluginArray] language ja-JP vendorSub platform Win32 mimeTypes [object MimeTypeArray] productSub 20030107 appVersion 5.0 (Windows; U; Windows NT 6.0; en-US) AppleWebKit/525.13 (KHTML, like Gecko) …

Chromeのグローバルオブジェクト

globalオブジェクト external, Node, Rect, name, Event, Text, Range, status, closed, parent, frames, Entity, opener, screen, length, scrollX, scrollY, UIEvent, Comment, screenY, Element, screenX, history, toolbar, CSSRule, console, document,…

winow.onhashchange

名前から察しの通りlocation.hashが変更になったタイミングで動作する関数。初期値はnull。 alert(window.onhashchange); // null sample.html <html> <head> <meta http-equiv="X-UA-Compatible" content="IE=8" > <script type="text/javascript"> window.onhashchange = function(){ alert(location.hash); }; </script> </head> <body> </body></html>

IE8でのXMLHttpRequestオブジェクトの行方

XMLHttpRequest alert("XMLHttpRequst" in window); // true ついでにActiveXObjectも alert("ActiveXObject" in window); // true ちゃんとwindowオブジェクト配下に隠れていた。よかった。

IE8β2のdocumentオブジェクト

namespaces, lastModified, onstorage, parentNode, onstoragecommit, nodeType, fileCreatedDate, onbeforeeditfocus, bgColor, oncontextmenu, onrowexit, embeds, scripts, onactivate, mimeType, alinkColor, onmousemove, compatible, onselectstart, o…

clientInformationとnavigator

clientInformation appCodeName, appName, appMinorVersion, cpuClass, platform, plugins, opsProfile, userProfile, systemLanguage, userLanguage, appVersion, userAgent, onLine, cookieEnabled, mimeTypes, navigator appCodeName, appName, appMinorV…

IE8β2のグローバルオブジェクト

status, onresize, onmessage, parent, onhashchange, defaultStatus, name, history, maxConnectionsPerServer, opener, location, screenLeft, document, onbeforeprint, screenTop, clientInformation, onerror, onfocus, event, onload, onblur, window,…