mirror of
https://github.com/roytam1/palemoon27.git
synced 2026-05-26 14:30:27 +00:00
Revert "backout bug 1134280 for fixing yandex search "Read more" link"
This reverts commit 980f33daef.
This commit is contained in:
@@ -277,11 +277,11 @@ HTMLPropertiesCollection::CrawlSubtree(Element* aElement)
|
||||
while (aContent) {
|
||||
// We must check aContent against mRoot because
|
||||
// an element must not be its own property
|
||||
if (aContent == mRoot || !aContent->IsHTML()) {
|
||||
if (aContent == mRoot || !aContent->IsHTMLElement()) {
|
||||
// Move on to the next node in the tree
|
||||
aContent = aContent->GetNextNode(aElement);
|
||||
} else {
|
||||
MOZ_ASSERT(aContent->IsElement(), "IsHTML() returned true!");
|
||||
MOZ_ASSERT(aContent->IsElement(), "IsHTMLElement() returned true!");
|
||||
Element* element = aContent->AsElement();
|
||||
if (element->HasAttr(kNameSpaceID_None, nsGkAtoms::itemprop) &&
|
||||
!mProperties.Contains(element)) {
|
||||
|
||||
Reference in New Issue
Block a user