diff options
Diffstat (limited to 'WebCore/html/HTMLMapElement.cpp')
-rw-r--r-- | WebCore/html/HTMLMapElement.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/WebCore/html/HTMLMapElement.cpp b/WebCore/html/HTMLMapElement.cpp index ef2673e..2fce481 100644 --- a/WebCore/html/HTMLMapElement.cpp +++ b/WebCore/html/HTMLMapElement.cpp @@ -80,14 +80,14 @@ void HTMLMapElement::parseMappedAttribute(MappedAttribute* attr) if (attrName == idAttr) { // Call base class so that hasID bit gets set. HTMLElement::parseMappedAttribute(attr); - if (doc->isHTMLDocument()) + if (doc->htmlMode() != Document::XHtml) return; } doc->removeImageMap(this); String mapName = attr->value(); if (mapName[0] == '#') mapName = mapName.substring(1); - m_name = doc->isHTMLDocument() ? mapName.lower() : mapName; + m_name = doc->htmlMode() == Document::XHtml ? mapName : mapName.lower(); doc->addImageMap(this); } else HTMLElement::parseMappedAttribute(attr); |