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

Patch by Simon Bünzli.
bug=344178
r=myk


git-svn-id: svn://10.0.0.236/trunk@203025 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
myk%mozilla.org 2006-07-18 20:57:59 +00:00
parent ada0f9c487
commit 56bb4c81a5

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