Uploaded image for project: 'Shindig'
  1. Shindig
  2. SHINDIG-1103

The bug is that DOMDocument->loadHtml will remove tages like </b> in script.

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.1-BETA1
    • Fix Version/s: 1.1-BETA1
    • Component/s: PHP
    • Labels:
      None

      Description

      Fixed shindig/php/test/index.php, We can request "http://shindig/test/index.php?test=GadgetRewriterTest" to get GadgetRewriterTest's result.
      Added shindig/php/test/gadgets/GadgetRewriterTest.php, To test when activate rewriter by rewrite_by_default=true, the rewrite code should change content within the content tag in application xml.
      <code>
      <Content type="html" view="default">
      <script>var test='<b>BIG WORDS</b>'</script>
      <h1>Hello, world!</h1>
      </Content>
      </code>
      be changed to
      <code>
      <script>var test='<b>BIG WORDS'</script>
      <h1>Hello, world!</h1>
      </code>
      The bug is that DOMDocument->loadHtml will remove tages like </b> in script. Every loadHtml calling has that problem. Do you have any solution for this?

        Attachments

        1. index-rewriter-test.patch
          4 kB
          lipeng
        2. GadgetRewriterTest.patch
          0.8 kB
          lipeng

          Activity

            People

            • Assignee:
              chabotc Chris Chabot
              Reporter:
              new_lp lipeng
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: