Doctree validation: Declare/check valid Element attribute names.
commita97bc3377307adfaa798537bff2945b9c9f766b5
authormilde <milde@929543f6-e4f2-0310-98a6-ba3bd3dd1d04>
Sat, 4 May 2024 09:35:10 +0000 (4 09:35 +0000)
committermilde <milde@929543f6-e4f2-0310-98a6-ba3bd3dd1d04>
Sat, 4 May 2024 09:35:10 +0000 (4 09:35 +0000)
tree1cbfd89a57f50161e70c1d80303a067298d0fa9d
parentd7fb654524149faaa278b340bde6d1fc46f9d15d
Doctree validation: Declare/check valid Element attribute names.

New method `nodes.Element.validate()`.

Allows validating a Document Tree or individual Elements,
e.g. from XML input or custom directives. Cf. [feature-requests:#94].

Part 1: validate attribute names.

git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk@9684 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
docutils/HISTORY.txt
docutils/RELEASE-NOTES.txt
docutils/docutils/nodes.py
docutils/test/test_nodes.py