Tags:
create new tag
view all tags

Question

TWiki (TWiki20030201.zip) pages crash IE 6.0.

If I start with a fresh browser process and look at TWikiPreferences, then hit Find (CTRL-f) and search for asdfasdf (which is nowhere on the page), IE 6.0 crashes. Strictly speaking, this of course has nothing to do with TWiki, but it is annoying that searching on many TWiki pages crashes the browser including all the other windows that may be open at the time.

http://twiki.org/cgi-bin/view/TWiki/TWikiPreferences also crashes my IE6.0 so it has nothing to do with my setup.

I looked in BrowserIssues, but did not find anything similar to this topic.

I found a workaround: In INSTALLDIR/templates/twiki.tmpl, Change the DOCTYPE and <html> tag from:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
to
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>

There already is a XhtmlConsideredHarmful topic here, and I don't claim to know anything about XHTML, other than it crashes IE6.0 (but not Mozilla....)

There may be and probably is a zillion other ways to work around this IE6.0 problem, but I haven't looked into that. My DOCTYPE workaround seems to work for me.

-- PeterMorch - 23 Mar 2003

Answer

I am wondering if this is a common problem with IE, although I have not heard of this.

The TWiki templates use XHTML 1.0 Transitional as defined in http://www.w3.org/TR/xhtml1/. The annotaed DTD is at http://www.w3.org/TR/xhtml1/dtds.html#a_dtd_XHTML-1.0-Transitional

A TWiki page starts with:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">

Oh, I just realize, there is one small difference: The DTD also defines:

<?xml version="1.0"?>

at the very beginning of the page (which is missing in the TWiki templates for HTML compatibility). Does it solve the problem if you add this to the original TWiki templates?

-- PeterThoeny - 12 Apr 2003

Edit | Attach | Watch | Print version | History: r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r2 - 2003-04-12 - PeterThoeny
 
  • Learn about TWiki  
  • Download TWiki
This site is powered by the TWiki collaboration platform Powered by Perl Hosted by OICcam.com Ideas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2026 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.