Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-6874516

HTMLFormElement.getAttribute("accept-charset") returns null under firefox

    Details

    • Subcomponent:
    • CPU:
      x86
    • OS:
      windows, windows_xp

      Description

      STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
      1. open the following url with java console open under firefox:
      http://sqeweb/jsn/users/fred/deployment_ws/fred/deployment_6_UR_int_ws/deployment/src/plugin/FunctionalTest/FunctionalTest/html/HTMLFormAcceptCharsetTest.html

      According to http://www.w3schools.com/TAGS/att_form_accept_charset.asp, "accept-charset" attribute is not supported under IE.

      EXPECTED VERSUS ACTUAL BEHAVIOR :
      EXPECTED -
      No exception will be printed in console and string "all tests pass" will be printed.
      ACTUAL -
      The following strings are printed:
      #### compare accept-charset, method return false. str:ISO-8859-1 vs null
      #### test fail

      HTMLFormElement.getAttribute("accept-charset") returns null

      REPRODUCIBILITY :
      This bug can be reproduced always.

      The applet source code is:
      http://sqeweb/jsn/users/fred/deployment_ws/fred/deployment_6_UR_int_ws/deployment/src/plugin/FunctionalTest/FunctionalTest/src/HTMLFormAcceptCharsetTest.java

      The implementation by javascript for this function can be found at:
      http://sqeweb/jsn/users/fred/deployment_ws/fred/deployment_6_UR_int_ws/deployment/src/plugin/FunctionalTest/FunctionalTest/html/HTMLFormAcceptCharsetTestScript.html

        Attachments

          Activity

            People

            • Assignee:
              almatvee Alexander Matveev
              Reporter:
              qgong Fred Gong (Inactive)
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Imported:
                Indexed: