Uploaded image for project: 'Apache Flex'
  1. Apache Flex
  2. FLEX-33900

index.template.html is not valid

    XMLWordPrintableJSON

    Details

      Description

      index.template.html fails validation in the W3C's markup validation service.

      Steps to Reproduce
      1. upload index.template.html to http://validator.w3.org/
      2. validate

      Expected Behavior
      1 error (character "$" is not allowed)
      this error can be ignored, because template tokens like ${application} will be replaced during compilation and the final html file will be valid

      Actual Behavior
      4 errors

      Line 31, 2 errors:
      <meta name="google" value="notranslate" />

      While there are Google resources (https://support.google.com/translate/#2641276) which state that you should use this meta tag, there are also resources which use the valid "content" attribute instead of the invalid "value" attribute: https://support.google.com/webmasters/answer/79812?hl=en

      Line 90:
      document.write(...

      for explanation see http://www.htmlhelp.com/tools/validator/problems.html#script
      A common error occurs when writing HTML tags within a SCRIPT element
      Furthermore for XHTML compliance: scripts must not use the document.write() method

        Attachments

        1. index.template.html.patch
          2 kB
          Stephan Plath

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              plathine Stephan Plath
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:

                Time Tracking

                Estimated:
                Original Estimate - 5m
                5m
                Remaining:
                Remaining Estimate - 5m
                5m
                Logged:
                Time Spent - Not Specified
                Not Specified