fix for bug #386705: Description field of new bookmark is not populated even though it has <META name="description" content="...">

fix by=Marco Bonardo <mak77@supereva.it>

r=sspitzer


git-svn-id: svn://10.0.0.236/trunk@229247 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
sspitzer%mozilla.org 2007-07-03 15:39:33 +00:00
parent 9ef352c07a
commit 03df119a57

View File

@ -1318,7 +1318,7 @@ var PlacesUtils = {
getDescriptionFromDocument: function PU_getDescriptionFromDocument(doc) {
var metaElements = doc.getElementsByTagName("META");
for (var i = 0; i < metaElements.length; ++i) {
if (metaElements[i].localName.toLowerCase() == "description" ||
if (metaElements[i].name.toLowerCase() == "description" ||
metaElements[i].httpEquiv.toLowerCase() == "description") {
return metaElements[i].content;
}