Index: Source/core/dom/Attr.cpp |
diff --git a/Source/core/dom/Attr.cpp b/Source/core/dom/Attr.cpp |
index b71a1e264dca535d81430f75caf30f5ad0d65874..4751272a4a9a07c3c376712033c476bba916a280 100644 |
--- a/Source/core/dom/Attr.cpp |
+++ b/Source/core/dom/Attr.cpp |
@@ -151,13 +151,7 @@ PassRefPtr<Node> Attr::cloneNode(bool /*deep*/) |
// DOM Section 1.1.1 |
bool Attr::childTypeAllowed(NodeType type) const |
{ |
- switch (type) { |
- case TEXT_NODE: |
- case ENTITY_REFERENCE_NODE: |
- return true; |
- default: |
- return false; |
- } |
+ return TEXT_NODE == type; |
} |
void Attr::childrenChanged(bool, Node*, Node*, int) |
@@ -167,8 +161,6 @@ void Attr::childrenChanged(bool, Node*, Node*, int) |
invalidateNodeListCachesInAncestors(&qualifiedName(), m_element); |
- // FIXME: We should include entity references in the value |
- |
StringBuilder valueBuilder; |
for (Node *n = firstChild(); n; n = n->nextSibling()) { |
if (n->isTextNode()) |