Search: Script Comments Appear in the Document Abstract

ID: Q242552


The information in this article applies to:
  • Microsoft Site Server version 3.0
  • Microsoft Site Server version 3.0, Commerce Edition


SYMPTOMS

When you view Site Server 3.0 Search query results, the document abstract contains comments that are inside SCRIPT tags. For example, the following document:


<html>
<head>
<title>Test</title>
<script language="JavaScript"  >
<!--
document.write( '<form action="" method="POST">')
document.write('<input type="button" name="Backbutton" value="Go Back"
onclick="history.back()">')
document.write(location.pathname)
document.write('"><img src="/test.gif"
border="0"></a>')
document.write('</form><BR> ')
document.close()
// -->
</script>
</head>
<BODY BGCOLOR='#FFFFFF'TEXT='#000000'>
Hello World!
</body>
</html> 
Produces an abstract that looks like:

') document.write(' ') document.close() // --> > Hello World!   

However, the the abstract should look like:

Hello World! 


CAUSE

In some cases, the Site Server HTML filter does not recognize the text as being inside the script tags, and treats the text as part of the document body.


RESOLUTION

To resolve this problem, obtain the latest service pack for Site Server 3.0. For additional information, please see the following article in the Microsoft Knowledge Base:

Q219292 How to Obtain the Latest Site Server 3.0 Service Pack


WORKAROUND

Specify a document description for HTML documents so Search does not attempt to create a description based on the document body. Use the following META tag to create the document description:


<META name="Description" contents="Place the document description here."> 


STATUS

This problem was first corrected in Microsoft Site Server 3.0 Service Pack 3.

Additional query words: search description meta abstract

Keywords : SS3SP3Fix
Version : winnt:3.0
Platform : winnt
Issue type : kbbug


Last Reviewed: October 26, 1999
© 2000 Microsoft Corporation. All rights reserved. Terms of Use.