-
-
Notifications
You must be signed in to change notification settings - Fork 111
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(developer): fast-xml-parser: fix for ldml empty attributes
- because of the form to="" in ldml, we need to distinguish attributes and sub-elements in the ldml xml parsing - use an attributePrefix, and fixup the object tree afterwards Fixes: #12208
- Loading branch information
Showing
4 changed files
with
61 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
13 changes: 13 additions & 0 deletions
13
developer/src/common/web/utils/test/fixtures/xml/tran_fail-matches-nothing-1.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
|
||
<keyboard3 conformsTo="45" xmlns="https://schemas.unicode.org/cldr/45/keyboard3" locale="mt" > | ||
<info name="fail-matches-nothing"/> | ||
|
||
<keys /> | ||
|
||
<transforms type="simple"> | ||
<transformGroup> | ||
<transform from=""/> | ||
</transformGroup> | ||
</transforms> | ||
</keyboard3> |
19 changes: 19 additions & 0 deletions
19
developer/src/common/web/utils/test/fixtures/xml/tran_fail-matches-nothing-1.xml.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
{ | ||
"keyboard3": { | ||
"conformsTo": "45", | ||
"xmlns": "https://schemas.unicode.org/cldr/45/keyboard3", | ||
"locale": "mt", | ||
"info": { | ||
"name": "fail-matches-nothing" | ||
}, | ||
"keys": {}, | ||
"transforms": { | ||
"type": "simple", | ||
"transformGroup": { | ||
"transform": { | ||
"from": "" | ||
} | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters