xml.dom.minidom uses names from superseded drafts of DOM Level 3
まだ誰も着手していません。
- 主要言語
- Python
- スター
- 77.2k
- フォーク
- 35.9k
- PR マージ指標
- PR 指標を取得中
説明
Several public attributes and methods of xml.dom.minidom come from working drafts of DOM Level 3, and were renamed before the Recommendation was published in 2004. The code says so itself:
# DOM Level 3 attributes, based on the 22 Oct 2002 draft
# DOM Level 3 (WD 9 April 2002)
| minidom | DOM Level 3 Core |
|---|---|
Node.getInterface(), DOMImplementation.getInterface() |
getFeature() |
Attr.schemaType, Element.schemaType |
schemaTypeInfo |
Text.isWhitespaceInElementContent |
isElementContentWhitespace |
Document.actualEncoding |
inputEncoding |
Document.encoding |
xmlEncoding |
Document.version |
xmlVersion |
Document.standalone |
xmlStandalone |
Entity.actualEncoding, Entity.encoding, Entity.version |
the same three renames |
Document.errorHandler is from the same drafts; in the Recommendation it became a parameter of domConfig.
None of these names are documented, so nothing tells a user that they are neither DOM Level 1/2 (which xml.dom documents) nor DOM Level 3 (which minidom does not claim, see gh-50348).
Adding the specified names and keeping the old ones as aliases breaks nothing, and lets the documented API match the specification.
Linked PRs
- gh-156696
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
調査の方向性
xml.dom.minidom のエントリポイントから始め、issue に列挙されている公開属性とメソッドを、それらの DOM Level 3 コメントとともに確認してください。現在の各名前を指定された Recommendation の名前と比較します。指定された名前が、既存の名前を壊すことなくエイリアスとして利用でき、既存のテストで適切にカバーされていれば完了です。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- python
- 領域
- backend
- issue の種類
- 機能追加
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 活発さ
- 停滞
- 明瞭さ
- 明確に書かれている
- 初心者へのやさしさ
- 35/100