Re: java detection test on a webpage with applet
"Rhino" <no.offline.contact.please@nospam.com> wrote in message
news:aUP8g.16324$M31.173097@news20.bellglobal.com...
"Oliver Wong" <owong@castortech.com> wrote in message
news:PzO8g.8756$Qq.2061@clgrps12...
Anyway, the W3C is the final authority on what is and isn't legal
HTML. I've used the validator available at http://validator.w3.org/ and
the following is legal according to HTML 4.1 Transitional:
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head><title>foo</title></head>
<body>
<APPLET CODE = "com.foo.resume.ResumeApplet.class" CODEBASE = "." ARCHIVE
=
"jar/ResumeApplet.jar" WIDTH = "620" HEIGHT = "466" ALIGN = "top">
<h1>Sorry, the applet cannot be displayed in this browser.</h1>
</APPLET>
</body>
</html>
It may be _legal_ but it doesn't actually _WORK_ :-) Ditto for using
paragraph tags: in both cases, the sentence doesn't get displayed. But
when I omitted any tags from specifically around the sentence and when I
used embed tags, it worked fine. I don't know WHY it behaved that way; I'm
just saying that is what happened.
It'll work assuming you're using a browser which complies with the
standard. It's like if you manufacture an audio CD, you can safely assume
it'll be playable in CD players, assuming the CD player actually follows the
industry standard for audio CDs. If some consumer out there has some crazy
CD player which only plays a subset of audio CDs, then it might not work on
those.
Of course, that doesn't help your users if they happen to be using a
webbrowser which doesn't comply to the standards. Depending on who wrote
the browser, you may be able to contact them and ask them to fix this bug
in their HTML parser.
The browser I used for my testing was IE6 with SP2 installed. Do you think
I should send Bill Gates a bug report? ;-)
IE has a history of not complying with the W3C standards, so if you do
submit a bug report, I wouldn't hold my breath on a fix. It's unfortunate
that Microsoft has enough marketshare that they can get away with releasing
a product, labelling it as a web browser, without it actually being able to
correctly interpret HTML data.
- Oliver