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

In the HelpSet viewer, HTML tags <LI>, <B>, <H1> don't work

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 1.4.0
    • 1.0, 1.3.0
    • client-libs
    • merlin
    • generic, x86, sparc
    • generic, solaris_7, windows_nt

      Name: mc57594 Date: 08/10/99

      I have an HTML file that has the following code in it:
      <p>Ordered list below:</p>

      <ol>
          <li class="mvd-P">First item</li>
          <li class="mvd-P">Second item</li>
          <li class="mvd-P">Third item</li>
      </ol>

      <p><SPAN STYLE="font-weight : bold;"><b>Note:</SPAN></b> The next item should be number 4. But in the
      hsviewer, it is displayed as number 1. In IE, it is displayed
      correctly.</p>

      <ol start="4">
          <li class="mvd-P">Fourth item</li>
      </ol>

      When this file is displayed in the hsviewer provided with JavaHelp 1.0, the fourth item in the list is numbered 1 instead of 4. The start command seems to be ignored. The HTML is displayed correctly in Microsoft IE 4.0. I am using JDK-1.2.1-A.
      (Review ID: 83313)
      ======================================================================

      Name: mc57594 Date: 08/17/99


      1. I'm hesitant to report this as a bug, but here goes.
      The hsviewer.exe that comes with JavaHelp 1.0 displays
      my helpset and its HTML files properly, so the problem must
      be constructing the help broker. However, in the test
      applet I wrote, the help broker object I construct ignores
      <h1> and <b> tags entirely.
      It formats <li> tags incorrectly, centering either numbers or
      bullets in the middle of the page.

      2. Here's how I'm constructing my help broker in the test applet.
      helpItem.addActionListener(new ActionListener() {
            public void actionPerformed(ActionEvent e) {
      ClassLoader cl;
      URL helpURL;
      try {
      cl = this.getClass().getClassLoader();
      helpURL = HelpSet.findHelpSet(cl, "FusionHelp.hs");
        fusionHS = new HelpSet(cl, helpURL);
      } catch (HelpSetException hse) {
      System.err.println("Error creating helpset " + hse);
      }
      fusionHB = fusionHS.createHelpBroker();
      fusionHB.setDisplayed(true);
            }
          }
            );

      And here's a sample of the html.
      <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
      <HTML>
      <HEAD>
      <TITLE>Panning</TITLE>
      </HEAD>
      <BODY BGCOLOR="#ffffff">
      <H1>Panning</H1>
      To pan the map,
      <ol>
      <li>First do this.
      <li>Then do this
      </ol>
      </body>
      </html>

      5. java version "1.2.1"
      Classic VM (build JDK-1.2.1-A, native threads)
      java full version "JDK-1.2.1-A"

      6. For what its worth, I have both jdk1.1.7 and jdk1.2.1
      installed on my machine.
      (Review ID: 93764)
      ======================================================================
      X-Sender: fitzgera@surfer
      To: chamness
      Subject: Re: (Review ID: 93764) HTML files are formatted incorrectly

      mark:

      At 06:01 PM 8/17/99 -0700, chamness wrote:
      >Jeff,
      >Thanks for the bug report!
      >The bug you have reported is a duplicate of Bug ID: 4261561

      actually, it turns out that it was less a bug than i thought. the html
      formatted properly in a frame, but didn't when i was setting the help
      broker in an applet and using either the appletviewer.exe or a web browser.
      roger brinkley mentioned that it was some type of security issue with the
      applets.
      on a brighter note, i installed the jdk1.2.2 over the weekend, and the
      html displayed as it should.
      thanks for getting back to me.

      ***********************************
      Jeff

            svioletsunw Scott Violet (Inactive)
            mchamnessunw Mark Chamness (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: