mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-11 04:15:43 +00:00
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:
parent
dd6232ab01
commit
d8632c7080
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user