-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
EZP-29289: Migrating ezxmltext with invalid name or id attributes
- Loading branch information
Showing
5 changed files
with
71 additions
and
5 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
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
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
18 changes: 18 additions & 0 deletions
18
tests/lib/FieldType/Converter/_fixtures/richtext/input/041-anchor_invalid_id.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,18 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<section | ||
xmlns:image="http://ez.no/namespaces/ezpublish3/image/" | ||
xmlns:xhtml="http://ez.no/namespaces/ezpublish3/xhtml/" | ||
xmlns:custom="http://ez.no/namespaces/ezpublish3/custom/"> | ||
<paragraph align="justify">Here is an anchor | ||
<anchor name="1name"/> | ||
</paragraph> | ||
<paragraph align="justify">Here is an anchor | ||
<anchor name="n1ame"/> | ||
</paragraph> | ||
<paragraph align="justify">Here is an anchor | ||
<anchor name="-1name"/> | ||
</paragraph> | ||
<paragraph align="justify">Here is an anchor | ||
<anchor name="_name"/> | ||
</paragraph> | ||
</section> |
19 changes: 19 additions & 0 deletions
19
tests/lib/FieldType/Converter/_fixtures/richtext/output/041-anchor_invalid_id.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,19 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<section | ||
xmlns="http://docbook.org/ns/docbook" | ||
xmlns:xlink="http://www.w3.org/1999/xlink" | ||
xmlns:ezxhtml="http://ez.no/xmlns/ezpublish/docbook/xhtml" | ||
xmlns:ezcustom="http://ez.no/xmlns/ezpublish/docbook/custom" version="5.0-variant ezpublish-1.0"> | ||
<para ezxhtml:textalign="justify">Here is an anchor | ||
<anchor xml:id="rewrite_1name"/> | ||
</para> | ||
<para ezxhtml:textalign="justify">Here is an anchor | ||
<anchor xml:id="n1ame"/> | ||
</para> | ||
<para ezxhtml:textalign="justify">Here is an anchor | ||
<anchor xml:id="rewrite_-1name"/> | ||
</para> | ||
<para ezxhtml:textalign="justify">Here is an anchor | ||
<anchor xml:id="_name"/> | ||
</para> | ||
</section> |