Uploaded image for project: 'eZ Publish / Platform'
  1. eZ Publish / Platform
  2. EZP-29488

ezxmltext -> richtext conversion : Invalid xhtml attribute values

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Priority: Low
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Upgrading
    • Labels:
      None

      Description

      Legacy ( eZ Publish ) do not perform much validation of html attributes ( ie. xml attribuites with the xhtml namespace ). As a consequence, user may experience validation errors when converting ezxmltext to richtext and displays content in eZ Platform.

      A example of ezxmltext which will be rendered into invalid xhtml is here (xhtml:colspan contains invalid value):

      <?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
                  xmlns:tmp="http://ez.no/namespaces/ezpublish3/temporary/">
              <table width="100%">
                  <tr>
                      <td xhtml:colspan="{sub($span1,1)}">
                          <paragraph>aaa</paragraph>
                      </td>
                  </tr>
              </table>
          </paragraph>
      </section>
      

      Even though the rendered output produced by eZ Publish will be invalid, browsers will cope with it just fine. eZ Platform will on the other hand validate the output and show error messages. Also, the conversion script will complain about such errors, but it will be vague in the hinting of what the validation problem is.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                vidar.langseid@ez.no Vidar Langseid
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated: