| Index: Source/core/editing/MarkupAccumulator.cpp
|
| diff --git a/Source/core/editing/MarkupAccumulator.cpp b/Source/core/editing/MarkupAccumulator.cpp
|
| index a7b7a5dfef428edb629256ee1d42217ec8a30104..f16280f9dc65775397f7743fb6461f1ab3794753 100644
|
| --- a/Source/core/editing/MarkupAccumulator.cpp
|
| +++ b/Source/core/editing/MarkupAccumulator.cpp
|
| @@ -385,9 +385,10 @@ void MarkupAccumulator::appendElement(StringBuilder& result, Element& element, N
|
| appendOpenTag(result, element, namespaces);
|
|
|
| if (element.hasAttributes()) {
|
| - unsigned length = element.attributeCount();
|
| - for (unsigned i = 0; i < length; i++)
|
| - appendAttribute(result, element, element.attributeItem(i), namespaces);
|
| + AttributeIteratorAccessor attributes = element.attributesIterator();
|
| + AttributeConstIterator end = attributes.end();
|
| + for (AttributeConstIterator it = attributes.begin(); it != end; ++it)
|
| + appendAttribute(result, element, **it, namespaces);
|
| }
|
|
|
| // Give an opportunity to subclasses to add their own attributes.
|
|
|