> > If they are not defined in HTML 3.1 or before, JEditorPane can't handle
> > them.
>
> seems to be HTML 3.2:
..
> http://72.14.221.104/search?q=cache:L_RhtLFYW-cJ:java.sun.com/j2se/1.4.2/docs/ap
i/javax/swing/JEditorPane.html+JEditorPane+HTML+3.2+site:java.sun.com&hl=fr&gl=f
r&ct=clnk&cd=1
Yep. When I read your post, I went searching Sun for a page that
describes *exactly* what is understood by JEP, but after 2 minutes
failure (for the Sun search engine to produce a result page), gave up.
I am sure I recall that JEP does *not* implement *every* style
understood in HTML 3.2, but I suspect the actual problem here
is that the local class has no 'memory' of (especially) VLINK's
with which to 'remember' what links have been visited.
VLINK/ALINK were sure defined for HTML 3.2
<http://www.w3.org/TR/REC-html32#body>
..but as an aside, did you validate your HTML? It looked OK to
me, but I am no HTML parser - I suggest it is better when
experimenting (and especially when facing unexpected results)
to keep the HTML as a separate document - specifically so that
it can be validated. The on-line validator is here..
<http://validator.w3.org/>
Andrew T.
John - 04 Sep 2006 13:46 GMT
vlink is the less important. The most important is "link".
the file: =======================================
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<html><head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<title>Title</title>
</head>
<body alink="#FF0000" bgcolor="#FFFFFF" link="#00FF00" text="#000000"
vlink="#0000FF">
A link: <a href="http://bugs.sun.com">link text</a>
</body></html>
=================================================
Result: Passed validation
File: upload://Form Submission
Encoding: utf-8
Doctype: -//W3C//DTD HTML 3.2//EN
Unknown Parse Mode!
The MIME Media Type () for this document is used to serve both SGML
and XML based documents, and it is not possible to disambiguate it based
on the DOCTYPE Declaration in your document. Parsing will continue in
SGML mode.
This Page Is Valid -//W3C//DTD HTML 3.2//EN!
Tip Of The Day:
Use class with semantics in mind
The uploaded document "upload://Form Submission" was checked and found
to be valid -//W3C//DTD HTML 3.2//EN. This means that the resource in
question identified itself as "-//W3C//DTD HTML 3.2//EN" and that we
successfully performed a formal validation using an SGML or XML Parser
(depending on the markup language used).
Andrew Thompson - 04 Sep 2006 14:21 GMT
> vlink is the less important. The most important is "link".
>
> the file: =======================================
> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
...
> Result: Passed validation
That 's the 'good stuff'. Thanks for confirming.
Not sure how to proceed from here, am interested to
hear from others.
Andrew T.