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
This commit is contained in:
sspitzer@mozilla.org 2007-07-03 08:39:33 -07:00
parent dd6232ab01
commit d8632c7080

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;
}