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
2006-07-18 20:57:59 +00:00
parent ce9f887326
commit ad4ffb0d28

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");