Skip to content

Commit 5ea4083

Browse files
author
辉希
committed
第6章翻译完成
1 parent a5b90dd commit 5ea4083

File tree

2 files changed

+35
-35
lines changed

2 files changed

+35
-35
lines changed

explainer-zh/index.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ <h2 id="status">当前文档状态</h2>
5252
</strong></p>
5353

5454
<p><a href="http://www.w3.org/2008/webapps/">Web Applications Working Group(Web应用工作组)</a>公布本文档作为工作组的记录. 如果你希望对本文档提出更加合理的意见, 请将你的建议发送<a href="mailto:[email protected]">[email protected]</a> (<a href="mailto:[email protected]?subject=subscribe">subscribe</a>, <a href="http://lists.w3.org/Archives/Public/public-webapps/">archives</a>). 所有的合理建议我们都非常欢迎</p>
55-
<p>一个工作组的记录公布并不意味着已经取得<abbr title="World Wide Web Consortium">W3C</abbr>.这份草案文档可能会随时被其它文档更新,取代,废除. 除了本文档的修订工作,本文档不适合被引用.</p>
55+
<p>一个工作组的记录公布并不意味着已经取得<abbr title="World Wide Web Consortium">W3C</abbr>小组成员的认可.这份草案文档可能会随时被其它文档更新,取代,废除. 除了本文档的修订工作,本文档不适合被引用.</p>
5656

5757
<p>本文档的制作是通过一个小组来维护,符合<a href="http://www.w3.org/Consortium/Patent-Policy-20040205/">5,2,2004 <abbr title="World Wide Web Consortium">W3C</abbr>专利政策</a>. <abbr title="World Wide Web Consortium">W3C</abbr> 维护了一个<a href="http://www.w3.org/2004/01/pp-impl/42538/status" rel="disclosure">公开的专利列表</a> 关系到小组的可交付的专利; 专利列表页面包含了每一个公开的专利. 个体认为所拥有的实际的专利知识包含在<a href="http://www.w3.org/Consortium/Patent-Policy-20040205/#def-essential">Essential Claim(s)</a> 中的必须公开和 <a href="http://www.w3.org/Consortium/Patent-Policy-20040205/#sec-Disclosure"><abbr title="World Wide Web Consortium">W3C</abbr>专利政策</a>第6部分中的相关的信息</p>
5858

spec-zh/shadow/index.html

+34-34
Original file line numberDiff line numberDiff line change
@@ -958,82 +958,82 @@ <h3>Event Retargeting Example</h3>
958958
</section>
959959

960960
<section>
961-
<h2>User Interaction</h2>
961+
<h2>用户交互</h2>
962962

963963
<section class="informative">
964-
<h3>Ranges and Selections</h3>
964+
<h3>范围 和 选区</h3>
965965

966966
<p>
967-
<a>Selection</a> [[!EDITING]] is not defined. Implementation should do their best to do what's best for them. Here's one possible, admittedly naive way:
967+
<a>选区</a> [[!EDITING]]([[!可编辑的区域]])是没有被定义的. 选区的开发和实现应该做到最好. 这是一个可能公认的错误的方法:
968968
</p>
969969

970-
<p>Since <a title="node">nodes</a> which are in the different <a title="node tree">node trees</a> never have the same <a>root</a>, there may never exist a valid <a title="range">DOM range</a> that spans multiple <a title="node tree">node trees</a>.</p>
970+
<p>由于<a title="node">nodes(节点)</a>在不同的<a title="node tree">node(节点)树上</a>绝对不可能拥有相同的<a>根(元素)</a>,它们可能绝对不会存在一个有效的<a title="range">DOM范围内</a>(这个DOM范围包含了多数的<a title="node tree">node(节点)树)</a>.</p>
971971

972-
<p>Accordingly, <a title="selection">selections</a> may only exist within one <a>node tree</a>, because they are defined by a single <a>range</a>. The <a>selection</a>, returned by the <a><code>window.getSelection()</code></a> method never returns a <a>selection</a> within a <a>shadow tree</a>.</p>
972+
<p>因此<a title="selection">选区</a> 是可能存在于唯一一个 <a>node(节点)树</a>里, 因为选区被定义在一个单独的<a>范围里</a>. 通过方法<code><a>window.getSelection()</a></code>返回的<a>选区</a>绝对不会返回一个在<a>shadow(阴影)树</a>里的<a>选区</a>.</p>
973973

974-
<p>The <code>getSelection()</code> method of the <a>shadow root</a> object returns the current <a>selection</a> in this <a>shadow tree</a>.</p>
974+
<p><a>shadow(阴影)根</a>对象的<code>getSelection()</code>方法返回的是当前<a>选区</a>是在当前(上下文)的<a>shadow tree(阴影树)</a>.</p>
975975
</section>
976976

977977
<section>
978-
<h3>Focus Navigation</h3>
978+
<h3>引导获取焦点</h3>
979979

980-
<p>If a <a>node</a> doesn’t <a title="participates">participate</a> in the <a>composed tree</a>, the <a>node</a> <strong>must</strong> be skipped from the <a>navigation order</a> [[!CSS3UI]] sequence.</p>
980+
<p>如果一个<a>节点</a><a title="participates">加入</a>一个<a>生成树(composed tree)</a>, <a>此节点</a> <strong>必须</strong>从[[!CSS3UI]]<a>渲染树的顺序</a>中被忽略</p>
981981

982-
<p>For <a>sequential focus navigation</a>, the <a>navigation order</a> sequence for a given <a>shadow tree</a> <var>A</var> <strong>must</strong> be inserted into the <a>navigation order</a> for other <a>node tree</a> as follow:</p>
982+
<p>对于<a>引导获取焦点的时序</a>, <a>此引导顺序</a>的时序对于一个给定的<a>shadow tree(阴影树)</a> <var>A</var> <strong>必须</strong> 被插入到其他<a>node tree(节点树)</a> <a>引导顺序中</a> , 规则规则如下:</p>
983983
<ol>
984-
<li>If <var>A</var> is the <a>youngest shadow tree</a>:
984+
<li>如果<var>A</var><a>最新的shadow tree(阴影树)</a>:
985985
<ol>
986-
<li>Let <var>HOST</var> be the <a>shadow host</a> which <a>hosts</a> A</li>
987-
<li>Let <var>B</var> be the <a>node tree</a> which <var>HOST</var> participates in</li>
988-
<li>The <a>navigation order</a> for A <strong>must</strong> be inserted into the <a>navigation order</a> for <var>B</var>:
986+
<li><var>宿主</var>成为<a>shadow host(阴影宿主)</a>,现在的阴影宿主就是<a>宿主</a>A</li>
987+
<li><var>B</var>成为<a>node tree(节点树)</a>,<var>让节点树的宿主</var>加入</li>
988+
<li>对于A的<a>引导顺序</a> <strong>必须</strong> 将A插入到<var>B</var> <a>的引导顺序</a>:
989989
<ol>
990-
<li>immediately after <var>HOST</var>, if <var>HOST</var> is <a>focusable</a>; or</li>
991-
<li>in place of the <var>HOST</var> as if <var>HOST</var> were assigned the value of <a title="nav-index auto"><code>auto</code></a> for determining its position.</li>
990+
<li>立刻插入到<var>宿主</var>之后, 如果<var>宿主</var><a>可聚焦的</a>; 或者</li>
991+
<li>取代<var>此宿主</var> ,如果 <var>此宿主</var> 被指定了属性 <a title="nav-index auto"><code>auto</code>这个属性</a>(auto这个属性决定了此宿主的位置)</li>
992992
</ol></li>
993993
</ol></li>
994-
<li>Otherwise:
994+
<li>如果不是那么:
995995
<ol>
996-
<li>Let <var>B</var> be the <a>younger shadow tree</a> relative to <var>A</var></li>
997-
<li>Let <var>SHADOW</var> be the <a>shadow insertion point</a> in <var>B</var></li>
998-
<li>If <var>SHADOW</var> exists, the <a>navigation order</a> for <var>A</var> <strong>must</strong> be inserted into the <a>navigation order</a> for <var>B</var> immediately after <var>SHADOW</var> as if <var>SHADOW</var> were assigned the value of <a title="nav-index auto"><code>auto</code></a> for determining its position.</li>
996+
<li><var>B</var>成为一个<a>优先级较高的shadow tree(阴影树)</a> , 让B关联到<var>A</var></li>
997+
<li><var>SHADOW(阴影)</var>成为一个<a>shadow(阴影)插入点</a>插入 <var>B</var></li>
998+
<li>如果<var>SHADOW(阴影)</var> 存在, 在<var>SHADOW(阴影)</var>之后,对于<var>A</var><a>引导顺序</a><strong>必须</strong>被插入到<var>B</var><a>引导顺序</a> 如果<var>SHADOW(阴影)</var> 被指定了值 <a title="nav-index auto"><code>auto</code></a> 去决定它的位置.</li>
999999
</ol></li>
10001000
</ol>
10011001

1002-
<p>For <a>directional focus navigation</a>, it is up to the user agent to integrate the <a title="navigation order">navigation orders</a> for <a title="shadow tree">shadow trees</a> into the <a>document</a> <a>navigation order</a>.</p>
1002+
<p>对于<a>有指向性的引导焦点</a>, 它取决于用户代理完整的 <a title="navigation order">引导顺序</a> <a title="shadow tree">shadow trees(阴影树)</a> <a>文本</a> <a>引导顺序</a>.</p>
10031003
</section>
10041004

10051005
<section>
1006-
<h3>Active Element</h3>
1006+
<h3>激活的元素</h3>
10071007

1008-
<p>To maintain encapsulation, the value of the <a title="Document object">Document</a> object's focus API property <a>activeElement</a> <strong>must</strong> be adjusted. To prevent loss of information when adjusting this value, each <a>shadow root</a> <strong>must</strong> also have an <code>activeElement</code> property to store the value of the focused <a>element</a> in the <a>shadow tree</a>.</p>
1008+
<p>为了坚持封装性, <a>激活的元素</a><a title="Document object">文档</a> 对象的 focus(焦点) API 属性中的值 <strong>必须</strong>被调整的. 为了防止当调整这个值的时候丢失信息, 每一个 <a>shadow root(阴影的根)</a> <strong>必须</strong> 也拥有一个<code>激活元素的</code> 属性用来保存在<a>shadow tree(阴影树)</a>中获取焦点激活<a>元素的</a>属性值</p>
10091009

1010-
<p>The <dfn>active <a>element</a> adjustment algorithm</dfn> is used to determine the value of the <a>activeElement</a> property, and it <strong>must</strong> be equivalent to processing the following steps:</p>
1010+
<p>对于<dfn>激活 <a>元素</a> 的算法调整</dfn> 被用来决定<a>激活元素</a>的属性值, 激活元素<strong>必须</strong>经过如下列步骤一样的等价处理的过程:</p>
10111011

10121012
<div class="algorithm">
10131013
<dl>
1014-
<dt>Input</dt>
1015-
<dd><var>ELEMENT</var>, the focused <a>element</a></dd>
1016-
<dd><var>ROOT</var>, either a <a>document</a> or a <a>shadow root</a></dd>
1017-
<dt>Output</dt>
1018-
<dd><var>ADJUSTED</var>, an adjusted <a>activeElement</a> property of <var>ROOT</var>.</dd>
1014+
<dt>输入</dt>
1015+
<dd><var>元素</var>, 获取焦点的<a>元素</a></dd>
1016+
<dd><var>ROOT(根)</var>, 要么是一个<a>文档</a> 或者是一个 <a>shadow root(阴影根)</a></dd>
1017+
<dt>输出</dt>
1018+
<dd><var>校正</var>, 一个已经被校正的<a>激活元素</a>属性的<var></var>.</dd>
10191019
</dl>
10201020
<ol>
1021-
<li>Let <var>PATH</var> be the result of the <a>event path calculation algorithm</a> with <var>ELEMENT</var> and null as input</li>
1022-
<li>Let <var>ADJUSTED</var> be the result of the <a>retargeting algorithm</a> with <var>PATH</var> and <var>ROOT</var> as input</li>
1021+
<li> <var>路径</var><var>元素和null</var><a>事件路径算法结果</a>作为输入</li>
1022+
<li> <var>调整</var>过的<var>路径</var><var></var><a>重定向算法结果</a> 作为输出</li>
10231023
</ol>
10241024
</div>
10251025
</section>
10261026

10271027
<section>
1028-
<h3>Editing</h3>
1028+
<h3>校订</h3>
10291029

1030-
<p>The value of the <a><code>contenteditable</code></a> attribute <strong>must not</strong> propagate from <a>shadow host</a> to its <a title="shadow tree">shadow trees</a>.</p>
1030+
<p><a><code>contenteditable</code>属性的值</a><strong>一定不能通过<a>shadow host(阴影宿主)</a> </strong> 传播到它本身的 <a title="shadow tree">shadow trees(阴影树)</a>.</p>
10311031
</section>
10321032

10331033
<section>
1034-
<h3>Assistive Technology</h3>
1034+
<h3>辅助技术</h3>
10351035

1036-
<p>User agents with assistive technology traverse the <a>composed tree</a>, and thus enable full use of WAI-ARIA [[!WAI-ARIA]] semantics in the <a title="shadow tree">shadow trees</a>.</p>
1036+
<p>用户代理可以通过辅助技术遍历<a>composed tree(生成树)</a>, 因此可以使完整的WAI-ARIA(可访问的富因特网应用程序) [[!WAI-ARIA]]语义在<a title="shadow tree">shadow trees(阴影树)</a>中使用.</p>
10371037

10381038
</section>
10391039

0 commit comments

Comments
 (0)