<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" href="/main.xsl"?>
<b:blog xmlns="http://www.w3.org/1999/xhtml" xmlns:b="http://blog.othree.net"  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://blog.othree.net http://blog.othree.net/blooog.xsd">
	<b:blogTitle>O3noBLOG</b:blogTitle>
	<b:blogDescription></b:blogDescription>
	<b:entries>
		<b:entriesMeta>
			<b:listType>s</b:listType>
			<b:listData listID="000396" baseName="base2-dom">base2.DOM</b:listData>

			<b:previous>
				<b:mTitle>使用者最大</b:mTitle>
				<b:mDate>2007/03/25</b:mDate>
				<b:mBase>usability-max</b:mBase>
			</b:previous>


			<b:next>
				<b:mTitle>Wii Sports 拳擊3124分</b:mTitle>
				<b:mDate>2007/04/04</b:mDate>
				<b:mBase>wii-sports-boxing-3124</b:mBase>
			</b:next>

		</b:entriesMeta>
		<b:entry entryID="000396" baseName="base2-dom">
			<b:author>
				<b:authorName>othree</b:authorName>
				<b:authorEmail>othree@gmail.com</b:authorEmail>
				<b:authorUrl></b:authorUrl>
			</b:author>
			<b:datetime>
				<b:date>2007-03-27</b:date>
				<b:time>00:39:07</b:time>
			</b:datetime>
			<b:category>script</b:category>

			<b:CommentsAccepted>1</b:CommentsAccepted>



			<b:PingsAccepted>1</b:PingsAccepted>


			<b:title>base2.DOM</b:title>
			<b:content>
				<b:summary>base2.DOM是Dean Edwards最近放出來的javascript library，與其說是javascript library，我到覺得比較像是瀏覽器的DOM bug fix，他不像jQuery那樣好用，也沒YUI那樣多功能，取而代之的是一些標準的實做，像是W3C Selectors API裡面的matchAll()、matchSingle()，還有W3C DOM裡面的addEventListener()、dispatchEvent()、removeEventLister()等等，修正加新增的函式一共有20個，而且因為各個函式都是取自標準，所以這個library並沒有說明文件，Dean Edwards還故意把發佈文章的標題取為Yet Another JavaScript Library Without Documentation。...</b:summary>
				<b:mainContent><p><a href="http://dean.edwards.name/weblog/2007/03/yet-another/">base2.DOM</a>是<a href="http://dean.edwards.name/">Dean Edwards</a>最近放出來的javascript library，與其說是javascript library，我到覺得比較像是瀏覽器的DOM bug fix，他不像<a href="http://jquery.com/">jQuery</a>那樣好用，也沒<a href="http://developer.yahoo.com/yui/"><span class="caps">YUI</span></a>那樣多功能，取而代之的是一些標準的實做，像是<a href="http://www.w3.org/TR/selectors-api/"><span class="caps">W3C</span> Selectors <span class="caps">API</span></a>裡面的<a href="http://www.w3.org/TR/selectors-api/#matchall"><code>matchAll()</code></a>、<a href="http://www.w3.org/TR/selectors-api/#matchsingle"><code>matchSingle()</code></a>，還有<a href="http://www.w3.org/DOM/"><span class="caps">W3C DOM</span></a>裡面的<a href="http://www.w3.org/TR/DOM-Level-2-Events/events.html#Events-EventTarget-addEventListener"><code>addEventListener()</code></a>、<a href="http://www.w3.org/TR/DOM-Level-2-Events/events.html#Events-EventTarget-dispatchEvent"><code>dispatchEvent()</code></a>、<a href="http://www.w3.org/TR/DOM-Level-2-Events/events.html#Events-EventTarget-removeEventListener"><code>removeEventLister()</code></a>等等，修正加新增的函式一共有20個，而且因為各個函式都是取自標準，所以這個library並沒有說明文件，Dean Edwards還故意把發佈文章的標題取為<strong>Yet Another JavaScript Library Without Documentation</strong>。</p></b:mainContent>
				<b:extendContent><p>另外Dean Edwards還發表了一篇<a href="http://dean.edwards.name/weblog/2007/03/rules/">Rules For JavaScript Library Authors</a>，講了11個設計Javascript Library的原則。</p>

<p>如果有人真的很想看說明文件的話，我整理如下：</p>


<ul>
<li><a href="http://www.w3.org/TR/2003/WD-DOM-Level-3-Core-20030226/core.html#Node3-compareDocumentPosition"><code>node.compareDocumentPosition()</code></a></li>
<li><a href="http://www.whatwg.org/specs/web-apps/current-work/#activeelement"><code>document.activeElement</code></a></li>
<li><a href="http://www.w3.org/TR/DOM-Level-2-Events/events.html#Events-DocumentEvent-createEvent"><code>document.createEvent()</code></a></li>
<li><a href="http://www.w3.org/TR/DOM-Level-2-Events/events.html#Events-EventTarget-addEventListener"><code>document|element.addEventListener()</code></a></li>
<li><a href="http://www.w3.org/TR/DOM-Level-2-Events/events.html#Events-EventTarget-removeEventListener"><code>document|element.removeEventListener()</code></a></li>
<li><a href="http://www.w3.org/TR/DOM-Level-2-Events/events.html#Events-EventTarget-dispatchEvent"><code>document|element.dispatchEvent()</code></a></li>
<li><a href="http://www.w3.org/TR/selectors-api/#matchall"><code>document|element.matchAll()</code></a></li>
<li><a href="http://www.w3.org/TR/selectors-api/#matchsingle"><code>document|element.matchSingle()</code></a></li>
<li><a href="http://www.whatwg.org/specs/web-apps/current-work/#getelementsbyclassname"><code>document|element.getElementsByClassName()</code></a></li>
<li><a href="http://www.w3.org/TR/DOM-Level-2-Core/core.html#node-ownerDoc"><code>element.ownerDocument</code></a></li>
<li><a href="http://www.w3.org/TR/DOM-Level-2-Core/core.html#ID-666EE0F9"><code>element.getAttribute()</code></a></li>
<li><a href="http://lists.w3.org/Archives/Public/www-archive/2007Jan/0010.html"><code>element.matchesSelector()</code></a></li>
<li><a href="http://www.w3.org/TR/DOM-Level-2-Core/core.html#ID-F68F082"><code>element.setAttribute()</code></a></li>
<li><a href="http://www.w3.org/TR/DOM-Level-2-Events/events.html#Events-Event-target"><code>event.target</code></a></li>
<li><a href="http://www.w3.org/TR/DOM-Level-3-Events/events.html#Events-Event-initEvent"><code>event.initEvent()</code></a></li>
<li><a href="http://www.w3.org/TR/DOM-Level-2-Events/events.html#Events-Event-preventDefault"><code>event.preventDefault()</code></a></li>
<li><a href="http://www.w3.org/TR/DOM-Level-2-Events/events.html#Events-Event-stopPropagation"><code>event.stopPropagation()</code></a></li>
</ul>

</b:extendContent>
			</b:content>
			<b:comments commentCount="1">

				<b:comment commentID="029472" entryID="000396">
					<b:author>
						<b:authorName>player</b:authorName>
						<b:authorEmail>playercd8@hotmail.com</b:authorEmail>
						<b:authorUrl>http://www.player.idv.tw/prog/index.php?title=JavaScript</b:authorUrl>
					</b:author>
					<b:datetime>
						<b:date>2007-09-13</b:date>
						<b:time>16:51:17</b:time>
					</b:datetime>
					<b:content>
						<b:mainContent><p>這篇加到我記錄URL的地方了</p></b:mainContent>
					</b:content>
				</b:comment>

			</b:comments>
			<b:trackbacks trackbackCount="0" trackbackURL="http://othree.net/mt/mt-tb.cgi/395">

			</b:trackbacks>
		</b:entry>
	</b:entries>
</b:blog>