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

The value of attribute, whose attribute name is not in the attr list, is null. Expected is empty str

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P3
    • Resolution: Not an Issue
    • Affects Version/s: 6u14, 7, 8
    • Fix Version/s: 9
    • Component/s: deploy
    • Subcomponent:
    • CPU:
      x86
    • OS:
      windows, windows_xp
    • Verification:
      Verified

      Description

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

      EXPECTED VERSUS ACTUAL BEHAVIOR :
      EXPECTED -
      Both getAttribute("align") and getAttribute("hello") return empty string
      The following strings are printed:
      @@@@empty attr returned an empty value
      @@@@non existed attr returned an empty value
      @@@@test pass
      ACTUAL -
      On firefox:
      getAttribute("align") returned empty string as expected.
      getAttribute("hello") returned null.
      The following strings are printed in the java console.
      @@@@ empty attr returned an empty value
      #### non existed attr expected: An empty value. Actual: null
      @@@@ test fail
      On IE:
      getAttribute("align") returned null.
      getAttribute("hello") returned null.
      The following strings are printed in the java console.
      #### empty attr expected: An empty value. Actual: null
      #### non existed attr expected: An empty value. Actual: null
      @@@@ test fail

      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/EmptyAttributeTest.java

        Attachments

          Activity

            People

            • Assignee:
              cbensen Chris Bensen (Inactive)
              Reporter:
              qgong Fred Gong (Inactive)
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Imported:
                Indexed: