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

REGRESSION: Incorrectly inserted 'p-implied' in HTMLDocument

XMLWordPrintable

    • b86
    • generic
    • generic

      FULL PRODUCT VERSION :
      java version "1.6.0-internal"
      Java(TM) SE Runtime Environment (build 1.6.0-internal-mk157862_27__2006_15_08-b00)
      Java HotSpot(TM) Server VM (build 1.6.0-beta2-b76, mixed mode)

      worked with:
      java version "1.5.0_06"
      Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_06-b05)
      Java HotSpot(TM) Server VM (build 1.5.0_06-b05, mixed mode)

      ADDITIONAL OS VERSION INFORMATION :
      SunRay (Solaris 10 3/05 s10_74L2a SPARC)

      A DESCRIPTION OF THE PROBLEM :
      After a specific insertion HTML document structure gets incorrect, that is (see 'p-implied' right after 'p' right after 'body'):
      ---------------------------------

      <html
        name=html
      >
        <head
          name=head
        >
          <p-implied
            name=p-implied
          >
            <content
              CR=true
              name=content
            >
              [0,1][
      ]
        <body
          name=body
        >
          <p
            name=p
          >
            <p-implied
              name=p-implied
            >
              <img
                name=img
              >
                [1,2][ ]
              <content
                CR=true
                name=content
              >
                [2,3][
      ]
            <div
              name=div
            >
              <p-implied
                name=p-implied
              >
                <content
                  name=content
                >
                  [3,10][Content]
                <content
                  CR=true
                  name=content
                >
                  [10,11][
      ]
            <content
              CR=true
              name=content
            >
              [11,12][
      ]
      <bidi root>
        <bidi level
          bidiLevel=0
        >
          [0,12][
       
      Content

      ]

      ---------------------------------

      STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
      1) Compile and run attached InsertHTMLOriginal.java
      2) Press the [Insert] button
      3) Get the depicted above dump

      EXPECTED VERSUS ACTUAL BEHAVIOR :

      EXPECTED -
      The dump should look like following:
      ------------------------------------

      <html
        name=html
      >
        <head
          name=head
        >
          <p-implied
            name=p-implied
          >
            <content
              CR=true
              name=content
            >
              [0,1][
      ]
        <body
          name=body
        >
          <div
            name=div
          >
            <p-implied
              name=p-implied
            >
              <content
                name=content
              >
                [3,10][Content]
              <content
                CR=true
                name=content
              >
                [10,11][
      ]
          <p
            name=p
          >
            <img
              name=img
            >
              [1,2][ ]
            <content
              CR=true
              name=content
            >
              [2,3][
      ]
            <content
              CR=true
              name=content
            >
              [11,12][
      ]
      <bidi root>
        <bidi level
          bidiLevel=0
        >
          [0,12][
       
      Content

      ]

      ------------------------------------
      ACTUAL -
      ------------------------------------
      As described in the beginning of this description.
      ------------------------------------
      REPRODUCIBILITY :
      This bug can be reproduced always.

            mknyazevsunw Michael Knyazev (Inactive)
            mknyazevsunw Michael Knyazev (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: