- From: Kang-Hao (Kenny) Lu <kennyluck@w3.org>
- Date: Wed, 24 Aug 2011 07:36:25 +0800
- To: 中文HTML5同樂會ML <public-html-ig-zh@w3.org>
- CC: John Hax <johnhax@gmail.com>, 劭非程 <csf178@gmail.com>
- Message-ID: <4E543979.3040109@w3.org>
對 HTML 部件(Widget)有興趣的朋友可以看看,這也是所謂的前 XBL 的部份, 想幫忙的朋友也可以把那幾個 wiki 頁面翻譯一下。相深入討論的歡迎拿一些不滿 的地方評論、批評、問問題! 相關歷史回顧:《我来冒死发点激进言论,欢迎大家逐条批判――我理想中的HTML和 CSS》[1] [1] http://lists.w3.org/Archives/Public/public-html-ig-zh/2010Sep/thread#msg42 Kenny -------- Original Message -------- Subject: Component Model Update Resent-Date: Tue, 23 Aug 2011 20:41:25 +0000 Resent-From: public-webapps@w3.org Date: Tue, 23 Aug 2011 13:40:47 -0700 From: Dimitri Glazkov <dglazkov@chromium.org> To: public-webapps <public-webapps@w3.org> CC: Maciej Stachowiak <mjs@apple.com>, Jonas Sicking <jonas@sicking.cc>, Boris Zbarsky <bzbarsky@mit.edu> All, Over the last few weeks, a few folks and myself have been working on fleshing out the vision for the Component Model. Here's what we've done so far: * Created a general overview document for behavior attachment problem on the Web (http://wiki.whatwg.org/wiki/Behavior_Attachment); * Wrote down the a set of guidelines on how we intend to tackle the problem (http://wiki.whatwg.org/wiki/Component_Model_Methodology); * Updated the list of use cases and desired properties for each case (http://wiki.whatwg.org/wiki/Component_Model_Use_Cases); * Captured the overall component model design and how it satisfies each desired property (http://wiki.whatwg.org/wiki/Component_Model), including a handy comparison with existing relevant specs and implementations (http://wiki.whatwg.org/wiki/Component_Model#Comparison_With_Existing_Specs_and_Implementations). After of this iteration, the proposed shadow DOM API no longer includes the .shadow accessor (see details here http://dglazkov.github.com/component-model/dom.html). Instead, the shadow DOM subtree association happens in ShadowRoot constructor: var element = document.createElement("div"); var shadow = new ShadowRoot(element); // {element} now has shadow DOM subtree, and {shadow} is its root. shadow.appendChild(document.createElement("p")).textContent = "weee!!'; Keeping the accessor out allows for proper encapsulation and confinement (better explanation of these new bits of terminology here: https://plus.google.com/103035368214666982008/posts/AnGBpHZzQu6), and also simplifies the API surface. Please review. Feedback is welcome! :DG<
Received on Tuesday, 23 August 2011 23:36:59 UTC