@@ -1101,19 +1101,19 @@ msgstr "ProcessingInstruction 对象"
11011101msgid ""
11021102"Represents a processing instruction in the XML document; this inherits from "
11031103"the :class:`Node` interface and cannot have child nodes."
1104- msgstr ""
1104+ msgstr "代表 XML 文档中的处理指令。 它继承自 :class:`Node` 接口并且不能拥有下级节点。 "
11051105
11061106#: ../../library/xml.dom.rst:796
11071107msgid ""
11081108"The content of the processing instruction up to the first whitespace "
11091109"character. This is a read-only attribute."
1110- msgstr ""
1110+ msgstr "处理指令的内容至第一个空格符为止。 这是个只读属性。 "
11111111
11121112#: ../../library/xml.dom.rst:802
11131113msgid ""
11141114"The content of the processing instruction following the first whitespace "
11151115"character."
1116- msgstr ""
1116+ msgstr "在第一个空格符之后的处理指令内容。 "
11171117
11181118#: ../../library/xml.dom.rst:809
11191119msgid "Exceptions"
@@ -1127,6 +1127,8 @@ msgid ""
11271127" :attr:`code` attribute that provides the appropriate value for the specific"
11281128" exception."
11291129msgstr ""
1130+ "DOM 第 2 层级推荐定义一个异常 :exc:`DOMException`,以及多个变量用来允许应用程序确定发生了何种错误。 "
1131+ ":exc:`DOMException` 实例带有 :attr:`code` 属性用来提供特定异常的对应值。"
11301132
11311133#: ../../library/xml.dom.rst:816
11321134msgid ""
@@ -1136,37 +1138,40 @@ msgid ""
11361138"specific exception, each of which carries the appropriate value for the "
11371139":attr:`code` attribute."
11381140msgstr ""
1141+ "Python DOM 接口提供了一些常量,但还扩展了异常集以使 DOM 所定义的每个异常代码都存在特定的异常。 "
1142+ "接口的具体实现必须引发正确的特定异常,它们各自带有正确的 :attr:`code` 属性值。"
11391143
11401144#: ../../library/xml.dom.rst:825
11411145msgid ""
11421146"Base exception class used for all specific DOM exceptions. This exception "
11431147"class cannot be directly instantiated."
1144- msgstr ""
1148+ msgstr "所有特定 DOM 异常所使用的异常基类。 该异常类不可被直接实例化。 "
11451149
11461150#: ../../library/xml.dom.rst:831
11471151msgid ""
11481152"Raised when a specified range of text does not fit into a string. This is "
11491153"not known to be used in the Python DOM implementations, but may be received "
11501154"from DOM implementations not written in Python."
11511155msgstr ""
1156+ "当指定范围的文本不能适配一个字符串时被引发。 此异常在 Python DOM 实现中尚不可用,但可从不是以 Python 编写的 DOM 实现中接收。"
11521157
11531158#: ../../library/xml.dom.rst:838
11541159msgid ""
11551160"Raised when an attempt is made to insert a node where the node type is not "
11561161"allowed."
1157- msgstr ""
1162+ msgstr "当尝试插入一个节点但该节点类型不被允许时被引发。 "
11581163
11591164#: ../../library/xml.dom.rst:844
11601165msgid ""
11611166"Raised when an index or size parameter to a method is negative or exceeds "
11621167"the allowed values."
1163- msgstr ""
1168+ msgstr "当一个方法的索引或大小参数为负值或超出允许的值范围时被引发。 "
11641169
11651170#: ../../library/xml.dom.rst:850
11661171msgid ""
11671172"Raised when an attempt is made to insert an :class:`Attr` node that is "
11681173"already present elsewhere in the document."
1169- msgstr ""
1174+ msgstr "当尝试插入一个 :class:`Attr` 节点但该节点已存在于文档中的某处时被引发。 "
11701175
11711176#: ../../library/xml.dom.rst:856
11721177msgid ""
0 commit comments