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

HTMLCollection.namedItem does not search id attribute

    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:
      http://sqeweb/jsn/users/fred/deployment_ws/fred/deployment_6_UR_int_ws/deployment/src/plugin/FunctionalTest/FunctionalTest/html/HTMLCollectionTest.html

      EXPECTED VERSUS ACTUAL BEHAVIOR :
      EXPECTED -
      anchors.namedItem("anchor1") should return the anchor which id is "anchor1", not the anchor which name is "anchor1"
      ACTUAL -
      anchors.namedItem("anchor1") returns the anchor which name is "anchor1";
      The following stirngs are printed:
      #### http://sun.com/
      #### anchor1 should be the anchor which id is anchor1
      #### 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/HTMLCollectionTest.java

      The pure javascript implementation is:
      http://sqeweb/jsn/users/fred/deployment_ws/fred/deployment_6_UR_int_ws/deployment/src/plugin/FunctionalTest/FunctionalTest/html/HTMLCollectionScript.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: