forked from ezsystems/ezplatform-xmltext-fieldtype
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
122 additions
and
10 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
33 changes: 33 additions & 0 deletions
33
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,33 @@ | ||
<?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> | ||
<paragraph align="justify">Here is an anchor | ||
<anchor name="aname"/> | ||
</paragraph> | ||
<paragraph align="justify">Here is an anchor | ||
<anchor name="#aname"/> | ||
</paragraph> | ||
<paragraph align="justify">Here is an anchor | ||
<anchor name="a@name"/> | ||
</paragraph> | ||
<paragraph align="justify">Here is an anchor | ||
<anchor name="an£ame"/> | ||
</paragraph> | ||
<paragraph align="justify">Here is an anchor | ||
<anchor name="aname["/> | ||
</paragraph> | ||
</section> |
34 changes: 34 additions & 0 deletions
34
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,34 @@ | ||
<?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> | ||
<para ezxhtml:textalign="justify">Here is an anchor | ||
<anchor xml:id="aname"/> | ||
</para> | ||
<para ezxhtml:textalign="justify">Here is an anchor | ||
<anchor xml:id="rewrite__aname"/> | ||
</para> | ||
<para ezxhtml:textalign="justify">Here is an anchor | ||
<anchor xml:id="rewrite_a_name"/> | ||
</para> | ||
<para ezxhtml:textalign="justify">Here is an anchor | ||
<anchor xml:id="rewrite_an__ame"/> | ||
</para> | ||
<para ezxhtml:textalign="justify">Here is an anchor | ||
<anchor xml:id="rewrite_aname_"/> | ||
</para> | ||
</section> |