Uploaded image for project: 'phpBB3'
  1. phpBB3
  2. PHPBB3-3227

Meta refresh XHTML compliance

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Resolution: Fixed
    • 3.0.x
    • None
    • Other
    • None
    • PHP Environment:
      Database:

    Description

      Suggestion:

      Any meta-refresh tag with an amp (&) in the URL should still be rendered as & to be XHTML Transitional compliant.

      For example:

      <meta http-equiv="refresh" content="3;url=http://siteurl/viewtopic.php?f=2&t=2&p=2#p2" />

      ...can still be rendered with & instead of just & and work fine. Otherwise, when validated, it throws XHTML compliance errors.

      Tested with FF 1.0, 1.5 and 2.0, Opera 8-9, NS 7.2 and 8.1.2 IE 5.0-7.0, Lynx, Links and the latest Konqueror. Do not have access to Safari at the moment.

      As far as I know, meta tags are still considered literal elements, and thus following the XHTML 1.0 standards for both strict and transitional, & must be used in place of &.

      If I am off base here, let me know, as it would save me a few keystrokes in webdev as well. I had noticed

          // Make sure no &amp;'s are in, this will break the redirect
          $url = str_replace('&amp;', '&', $url);


      in functions.php under the function redirect. What browsers does it break in?

      Attachments

        Activity

          People

            Acyd Burn Meik Sievertsen [X] (Inactive)
            SethC SethC [X] (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: