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

Incorrect HTML document internal structure for a specific HTML document

XMLWordPrintable

      FULL PRODUCT VERSION :
      JDK 1.4, 1.6 (tested with these platforms)

      ADDITIONAL OS VERSION INFORMATION :
      - Solaris 10 SPARC

      A DESCRIPTION OF THE PROBLEM :
      When special HTML is being parsed/rendered, the internal model's structure gets corrupted, which leads to incorrect document visualization.

      The special HTML code is:
      [CODE]

      <!DOCTYPE HTML PUBLIC "-//HotJava QA//DTD HTML 3.2//EN">
      <HTML>
      <HEAD>
      <TITLE>Testing HotJava based on the 3.2 html spec</TITLE>
      </HEAD>
      <BODY>

      <h1>Tests Text Level Element Phrase Style elements</h1>
      <p>This paragraph tests the <em>em emphasis phrase style element w/o end tag.
      <p>This paragraph tests the <strong>strong emphasis phrase style element w/o end tag.
      <p>This paragraph tests the <dfn>dfn defining instance or enclosed term phrase style element w/o end tag.

      <p>This paragraph tests the <code>code extracts from program code phrase style element w/o end tag.
      <p>This paragraph tests the <samp>samp sample program output phrase style element w/o end tag.
      <p>This paragraph tests the <kbd>kbd text to be typed phrase style element w/o end tag.
      <p>This paragraph tests the <var>var variables or arguments phrase style element w/o end tag.
      <p>This paragraph tests the <cite>cite citation or reference phrase style element w/o end tag.


      </BODY>
      </HTML>

      [/CODE]

      STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
      1) Compile and run attached test.
      2) See incorrect visualization.
      3) To view details about the incorrect structure do the following:
      - Comment out section "/* Visual Test {{{ */"
      - Uncomment section "/* Structure Test {{{ */"
      - Compile and run the modified test
      - See the standard error log.

      EXPECTED VERSUS ACTUAL BEHAVIOR :
      EXPECTED -
      The document is correctly visualized.
      ACTUAL -
      The document is not correctly visualized (in comparison with say Mozilla).

      REPRODUCIBILITY :
      This bug can be reproduced always.
      *** (#1 of 1): 2006-09-21 16:32:54 MSD ###@###.###

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

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: