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

HTMLCollection.namedItem does not search id attribute

    XMLWordPrintable

Details

    • x86
    • 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

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

            Dates

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: