make the microsummary service handle text/html microsummaries by extracting their plaintext content

Patch by Simon B��nzli.
bug=344178
r=myk
This commit is contained in:
myk@mozilla.org
2007-01-14 05:38:07 +00:00
parent a95f0d5f83
commit 1c9bd25375

View File

@@ -1028,6 +1028,8 @@ Microsummary.prototype = {
generator.initFromXML(resource.content);
else if (resource.contentType == "text/plain")
generator.initFromText(resource.content);
else if (resource.contentType == "text/html")
generator.initFromText(resource.content.body.textContent);
else
throw("generator is neither XML nor plain text");