Online demo does not handle DOCTYPE correctly and gives an error
メンテナーはふだん 4 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 初心者へのやさしさ
- 38/100
- issue の種類
- バグ
- 明瞭さ
- おおむね明確
- 活発さ
- 停滞
- 技術スタック
- javascript
調査の方向性
https://naturalintelligence.github.io/fast-xml-parser/ のオンラインツールから始め、デフォルトの XML サンプルを使って、ドキュメントに記載された「Parse to JSON」、「Parse to XML」、「Parse to JSON」のシーケンスを再現してください。ラウンドトリップで XML 宣言エラーが報告されなくなり、重複した宣言も生成されなくなれば完了です。issue ではソースファイルもテストも指定されていません。
索引モデルが issue の本文から書いたものです。
説明
- Are you running the latest version?
- Have you included sample input, output, error, and expected output?
- Have you checked if you are using correct configuration?
- Did you try online tool?
Description
Steps to reproduce:
- go to the online tool https://naturalintelligence.github.io/fast-xml-parser/
- no additional input needed, just click "Parse to JSON"
- then "Parse to XML"
- and again "Parse to JSON"
- it'll print
Error: XML declaration allowed only at the start of the document.:2:6
I guess this is due to the { "?xml": "", ... } property, which converts to an invalid and duplicated doctype, resulting in an invalid XML:
<?xml version="1.0"?>
<?xml?>
<!-- ... the rest of the XML is valid -->
If i uncheck the "Ignore attributes" checkbox, then at the 2nd step i'll get a JSON that starts with this
{
"?xml": {
"@_version": "1.0"
},
and when you convert it back to XML then you get a valid, but still duplicated doctype, which results in the same error:
<?xml version="1.0"?>
<?xml version="1.0"?>
<!-- ... the rest of the XML is valid -->
Code
The default XML sample that's in the online tool.
Output
expected data
Would you like to work on this issue?
- Yes
- No
Bookmark this repository for further updates. Visit SoloThought to know about recent features.
- 主要言語
- JavaScript
- スター
- 3.1k
- フォーク
- 400
- 平均マージ
- 3日 9時間
- マージ済み PR(30日)
- 1
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
NaturalIntelligence/fast-xml-parser のほかの issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
NaturalIntelligence/fast-xml-parser#890 · コメント 1 件 ·
メンテナーはふだん 4 日以内に返信
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
NaturalIntelligence/fast-xml-parser#888 · コメント 2 件 ·
メンテナーはふだん 4 日以内に返信
-
ignoreDeclaration does not ignore lower case doctype declaration再び着手できるかも このイシューのプルリクエストはマージされずにクローズされました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
NaturalIntelligence/fast-xml-parser#870 · コメント 2 件 ·
メンテナーはふだん 4 日以内に返信
-
CLI crashes with an uncaught exception when the input file is missing対応中かも @troclaux が 6 日前に担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 25/100
NaturalIntelligence/fast-xml-parser#894 · コメント 3 件 ·
メンテナーはふだん 4 日以内に返信
-
Numeric character references (A, A) are not decoded unless htmlEntities is enabled再び着手できるかも このイシューのプルリクエストはマージされずにクローズされました。 オープン
難易度 3/5 1〜2日 初心者へのやさしさ 64/100
NaturalIntelligence/fast-xml-parser#892 · コメント 3 件 ·
メンテナーはふだん 4 日以内に返信
NaturalIntelligence/fast-xml-parser の issue をすべて見る
似ている issue
-
bug 優先: 低
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
メンテナーはふだん 1 日以内に返信
-
admission-deferred priority: medium status: ready work-class: scoped
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
melodic-software/claude-code-plugins#10887 · コメント 4 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 66/100
-
難易度 1/5 1〜3時間 初心者へのやさしさ 91/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
メンテナーはふだん 2 日以内に返信