summaryrefslogtreecommitdiffstats
path: root/dom/base/FragmentOrElement.cpp
diff options
context:
space:
mode:
authorjanekptacijarabaci <janekptacijarabaci@seznam.cz>2017-08-18 13:39:37 +0200
committerwolfbeast <mcwerewolf@gmail.com>2018-03-12 10:01:04 +0100
commitea44e60b7ed5f674b6de65fad669ac43a45438cc (patch)
tree38b4e34c1859e6881c428f962cf47a1cc52cbd5b /dom/base/FragmentOrElement.cpp
parent6be9e507077bfdd2b8c82c203cf70f010ecce086 (diff)
downloadUXP-ea44e60b7ed5f674b6de65fad669ac43a45438cc.tar
UXP-ea44e60b7ed5f674b6de65fad669ac43a45438cc.tar.gz
UXP-ea44e60b7ed5f674b6de65fad669ac43a45438cc.tar.lz
UXP-ea44e60b7ed5f674b6de65fad669ac43a45438cc.tar.xz
UXP-ea44e60b7ed5f674b6de65fad669ac43a45438cc.zip
HTML - implement the labels attribute (follow up)
Diffstat (limited to 'dom/base/FragmentOrElement.cpp')
-rw-r--r--dom/base/FragmentOrElement.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/dom/base/FragmentOrElement.cpp b/dom/base/FragmentOrElement.cpp
index 3112515ff..79f6cff51 100644
--- a/dom/base/FragmentOrElement.cpp
+++ b/dom/base/FragmentOrElement.cpp
@@ -1831,7 +1831,8 @@ NS_IMPL_CYCLE_COLLECTION_TRAVERSE_BEGIN_INTERNAL(FragmentOrElement)
}
nsAutoString classes;
- const nsAttrValue* classAttrValue = tmp->GetClasses();
+ const nsAttrValue* classAttrValue = tmp->IsElement() ?
+ tmp->AsElement()->GetClasses() : nullptr;
if (classAttrValue) {
classes.AppendLiteral(" class='");
nsAutoString classString;