void SerializerMarkupAccumulator::appendElement(StringBuilder& out, Element* element, Namespaces* namespaces) { if (!shouldIgnoreElement(element)) MarkupAccumulator::appendElement(out, element, namespaces); if (element->hasTagName(HTMLNames::headTag)) { out.append("<meta charset=\""); out.append(m_document->charset()); out.append("\">"); } // FIXME: For object (plugins) tags and video tag we could replace them by an image of their current contents. }
void SerializerMarkupAccumulator::appendEndTag(Node* node) { if (node->isElementNode() && !shouldIgnoreElement(toElement(node))) MarkupAccumulator::appendEndTag(node); }
void SerializerMarkupAccumulator::appendText(StringBuilder& out, Text* text) { Element* parent = text->parentElement(); if (parent && !shouldIgnoreElement(parent)) MarkupAccumulator::appendText(out, text); }
void SerializerMarkupAccumulator::appendEndTag(const Element& element) { if (!shouldIgnoreElement(element)) MarkupAccumulator::appendEndTag(element); }