United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
Bug ID: JDK-4241788 HyperLink tags in HTMLEditorKit off by one
JDK-4241788 : HyperLink tags in HTMLEditorKit off by one

Details
Type:
Bug
Submit Date:
1999-05-27
Status:
Resolved
Updated Date:
2000-03-09
Project Name:
JDK
Resolved Date:
2000-03-09
Component:
client-libs
OS:
generic
Sub-Component:
javax.swing
CPU:
generic
Priority:
P3
Resolution:
Fixed
Affected Versions:
1.2.2
Fixed Versions:
1.4.0 (beta)

Related Reports

Sub Tasks

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
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
CONVERTED DATA

BugTraq+ Release Management Values

COMMIT TO FIX:
merlin-beta

FIXED IN:
merlin-beta

INTEGRATED IN:
merlin-beta


                                     
2004-06-14



Hardware and Software, Engineered to Work Together