JDK-4241788 : HyperLink tags in HTMLEditorKit off by one
  • Type: Bug
  • Component: client-libs
  • Sub-Component: javax.swing
  • Affected Version: 1.2.2
  • Priority: P3
  • Status: Resolved
  • Resolution: Fixed
  • OS: generic
  • CPU: generic
  • Submitted: 1999-05-27
  • Updated: 2000-03-09
  • Resolved: 2000-03-09
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availabitlity Release.

To download the current JDK release, click here.
Other
1.4.0 betaFixed
Description
All hypertext strings (blue underline) are shown with a leading empty "_". There 's only one xref in the attached file (See Using Connection Wizard) but the problem is clearly seen.

Comments
CONVERTED DATA BugTraq+ Release Management Values COMMIT TO FIX: merlin-beta FIXED IN: merlin-beta INTEGRATED IN: merlin-beta
2004-06-14

EVALUATION It would appear we do not strip whitespace in this case <a href=...> <em>blah. The parser will have to be investigated. scott.violet@eng 1999-09-16 The semantics of the html parser (javax.swing.text.html.parser.Parser) have slightly changed to better match that of the browser (NS and IE). While no API was changed, those using the parser may notice a slight difference in the reporting of whitespace. Here is how things have changed: If strict (an instance variable of javax.swing.text.html.parser.Parser) == false (the default) an instance variable is used to try and mimic the behavior of IE and NS. The problematic scenarios are: '<b>blah <i> <strike> foo' which can be treated as: '<b>blah <i><strike>foo' as well as: '<p><a href="xx"> <em>Using</em></a></p>' which appears to be treated as: '<p><a href="xx"><em>Using</em></a></p>' When a tag that breaks flow, or trailing whitespace is encountered an instance variable is set to true. From then on, all whitespace will be ignored. The instance variable will be set back to false the first time a non whitespace character is encountered. scott.violet@eng 2000-03-06
2000-03-06