| 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 Dirk Mueller (mueller@kde.org) | 4 * (C) 2001 Dirk Mueller (mueller@kde.org) |
| 5 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All r
ights reserved. | 5 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All r
ights reserved. |
| 6 * Copyright (C) 2008 Nokia Corporation and/or its subsidiary(-ies) | 6 * Copyright (C) 2008 Nokia Corporation and/or its subsidiary(-ies) |
| 7 * Copyright (C) 2009 Torch Mobile Inc. All rights reserved. (http://www.torchmo
bile.com/) | 7 * Copyright (C) 2009 Torch Mobile Inc. All rights reserved. (http://www.torchmo
bile.com/) |
| 8 * | 8 * |
| 9 * This library is free software; you can redistribute it and/or | 9 * This library is free software; you can redistribute it and/or |
| 10 * modify it under the terms of the GNU Library General Public | 10 * modify it under the terms of the GNU Library General Public |
| (...skipping 499 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 510 node = NodeTraversal::nextPostOrder(*node); | 510 node = NodeTraversal::nextPostOrder(*node); |
| 511 } | 511 } |
| 512 } | 512 } |
| 513 | 513 |
| 514 const AtomicString& Node::prefix() const | 514 const AtomicString& Node::prefix() const |
| 515 { | 515 { |
| 516 // For nodes other than elements and attributes, the prefix is always null | 516 // For nodes other than elements and attributes, the prefix is always null |
| 517 return nullAtom; | 517 return nullAtom; |
| 518 } | 518 } |
| 519 | 519 |
| 520 void Node::setPrefix(const AtomicString& /*prefix*/, ExceptionState& exceptionSt
ate) | |
| 521 { | |
| 522 // The spec says that for nodes other than elements and attributes, prefix i
s always null. | |
| 523 // It does not say what to do when the user tries to set the prefix on anoth
er type of | |
| 524 // node, however Mozilla throws a NamespaceError exception. | |
| 525 exceptionState.throwDOMException(NamespaceError, "Prefixes are only supporte
d on element and attribute nodes."); | |
| 526 } | |
| 527 | |
| 528 const AtomicString& Node::localName() const | 520 const AtomicString& Node::localName() const |
| 529 { | 521 { |
| 530 return nullAtom; | 522 return nullAtom; |
| 531 } | 523 } |
| 532 | 524 |
| 533 const AtomicString& Node::namespaceURI() const | 525 const AtomicString& Node::namespaceURI() const |
| 534 { | 526 { |
| 535 return nullAtom; | 527 return nullAtom; |
| 536 } | 528 } |
| 537 | 529 |
| (...skipping 2203 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2741 node->showTreeForThis(); | 2733 node->showTreeForThis(); |
| 2742 } | 2734 } |
| 2743 | 2735 |
| 2744 void showNodePath(const WebCore::Node* node) | 2736 void showNodePath(const WebCore::Node* node) |
| 2745 { | 2737 { |
| 2746 if (node) | 2738 if (node) |
| 2747 node->showNodePathForThis(); | 2739 node->showNodePathForThis(); |
| 2748 } | 2740 } |
| 2749 | 2741 |
| 2750 #endif | 2742 #endif |
| OLD | NEW |