Uploaded image for project: 'PUBLIC - Liferay Portal Community Edition'
  1. PUBLIC - Liferay Portal Community Edition
  2. LPS-72394

Adaptable images after non adaptable ones will not be replaced properly

    Details

      Description

      When processing a bit of html like:

      <img src=\"url1\"/>"
      <img data-fileEntryId=\"1234\" src=\"url2\"/>"
      

      The output should be:

      <img src=\"url1\"/>"
      <picture data-fileEntryId=\"1234\">
          ... source elements
          <img src=\"url2\"/>"
      </picture>
      

      But instead it is:

      <picture data-fileEntryId=\"1234\">
          ... source elements
          <img src=\"url1\"/>"
      </picture>
      

      The problem is the regex detects just 1 img tag enclosing both of them.

        Attachments

          Activity

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Days since last comment:
                2 years, 23 weeks, 3 days ago

                Packages

                Version Package
                7.1.X
                Master