| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) | 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) |
| 3 * (C) 1999 Antti Koivisto (koivisto@kde.org) | 3 * (C) 1999 Antti Koivisto (koivisto@kde.org) |
| 4 * (C) 2001 Peter Kelly (pmk@post.com) | 4 * (C) 2001 Peter Kelly (pmk@post.com) |
| 5 * (C) 2001 Dirk Mueller (mueller@kde.org) | 5 * (C) 2001 Dirk Mueller (mueller@kde.org) |
| 6 * (C) 2007 David Smith (catfish.man@gmail.com) | 6 * (C) 2007 David Smith (catfish.man@gmail.com) |
| 7 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2012, 2013 Apple Inc.
All rights reserved. | 7 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2012, 2013 Apple Inc.
All rights reserved. |
| 8 * (C) 2007 Eric Seidel (eric@webkit.org) | 8 * (C) 2007 Eric Seidel (eric@webkit.org) |
| 9 * | 9 * |
| 10 * This library is free software; you can redistribute it and/or | 10 * This library is free software; you can redistribute it and/or |
| (...skipping 1209 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1220 if (other->elementData()) | 1220 if (other->elementData()) |
| 1221 return other->elementData()->isEquivalent(elementData()); | 1221 return other->elementData()->isEquivalent(elementData()); |
| 1222 return true; | 1222 return true; |
| 1223 } | 1223 } |
| 1224 | 1224 |
| 1225 String Element::nodeName() const | 1225 String Element::nodeName() const |
| 1226 { | 1226 { |
| 1227 return m_tagName.toString(); | 1227 return m_tagName.toString(); |
| 1228 } | 1228 } |
| 1229 | 1229 |
| 1230 String Element::nodeNamePreservingCase() const | |
| 1231 { | |
| 1232 return m_tagName.toString(); | |
| 1233 } | |
| 1234 | |
| 1235 void Element::setPrefix(const AtomicString& prefix, ExceptionState& exceptionSta
te) | 1230 void Element::setPrefix(const AtomicString& prefix, ExceptionState& exceptionSta
te) |
| 1236 { | 1231 { |
| 1237 UseCounter::count(document(), UseCounter::ElementSetPrefix); | 1232 UseCounter::count(document(), UseCounter::ElementSetPrefix); |
| 1238 | 1233 |
| 1239 if (!prefix.isEmpty() && !Document::isValidName(prefix)) { | 1234 if (!prefix.isEmpty() && !Document::isValidName(prefix)) { |
| 1240 exceptionState.throwDOMException(InvalidCharacterError, "The prefix '" +
prefix + "' is not a valid name."); | 1235 exceptionState.throwDOMException(InvalidCharacterError, "The prefix '" +
prefix + "' is not a valid name."); |
| 1241 return; | 1236 return; |
| 1242 } | 1237 } |
| 1243 | 1238 |
| 1244 // FIXME: Raise NamespaceError if prefix is malformed per the Namespaces in
XML specification. | 1239 // FIXME: Raise NamespaceError if prefix is malformed per the Namespaces in
XML specification. |
| (...skipping 2381 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3626 // Before doing so, we need to resolve issues in HTMLSelectElement::recalcLi
stItems | 3621 // Before doing so, we need to resolve issues in HTMLSelectElement::recalcLi
stItems |
| 3627 // and RenderMenuList::setText. See also https://bugs.webkit.org/show_bug.cg
i?id=88405 | 3622 // and RenderMenuList::setText. See also https://bugs.webkit.org/show_bug.cg
i?id=88405 |
| 3628 if (hasTagName(optionTag) || hasTagName(optgroupTag)) | 3623 if (hasTagName(optionTag) || hasTagName(optgroupTag)) |
| 3629 return false; | 3624 return false; |
| 3630 if (FullscreenElementStack::isActiveFullScreenElement(this)) | 3625 if (FullscreenElementStack::isActiveFullScreenElement(this)) |
| 3631 return false; | 3626 return false; |
| 3632 return true; | 3627 return true; |
| 3633 } | 3628 } |
| 3634 | 3629 |
| 3635 } // namespace WebCore | 3630 } // namespace WebCore |
| OLD | NEW |