mirror of
https://github.com/python/cpython.git
synced 2025-11-27 13:45:25 +00:00
- clarify Attr.name comment on the presence of colons in namespace mode
- document Attr.value - wrap some long lines
This commit is contained in:
parent
5840469067
commit
62bebdf49f
1 changed files with 12 additions and 3 deletions
|
|
@ -705,18 +705,27 @@ Attr Objects
|
||||||
|
|
||||||
.. attribute:: Attr.name
|
.. attribute:: Attr.name
|
||||||
|
|
||||||
The attribute name. In a namespace-using document it may have colons in it.
|
The attribute name.
|
||||||
|
In a namespace-using document it may include a colon.
|
||||||
|
|
||||||
|
|
||||||
.. attribute:: Attr.localName
|
.. attribute:: Attr.localName
|
||||||
|
|
||||||
The part of the name following the colon if there is one, else the entire name.
|
The part of the name following the colon if there is one, else the
|
||||||
|
entire name.
|
||||||
This is a read-only attribute.
|
This is a read-only attribute.
|
||||||
|
|
||||||
|
|
||||||
.. attribute:: Attr.prefix
|
.. attribute:: Attr.prefix
|
||||||
|
|
||||||
The part of the name preceding the colon if there is one, else the empty string.
|
The part of the name preceding the colon if there is one, else the
|
||||||
|
empty string.
|
||||||
|
|
||||||
|
|
||||||
|
.. attribute:: Attr.value
|
||||||
|
|
||||||
|
The text value of the attribute. This is a synonym for the
|
||||||
|
:attr:`nodeValue` attribute.
|
||||||
|
|
||||||
|
|
||||||
.. _dom-attributelist-objects:
|
.. _dom-attributelist-objects:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue