Search: Script Comments Appear in the Document Abstract (242552)



The information in this article applies to:

  • Microsoft Site Server 3.0
  • Microsoft Site Server 3.0 Commerce Edition

This article was previously published under Q242552

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, click the following article number to view the article in the Microsoft Knowledge Base:

219292 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.

Modification Type:MinorLast Reviewed:7/15/2004
Keywords:kbbug kbfix kbQFE KB242552