Lines Matching refs:attr
95 static void appendAttributeValue(Vector<UChar>& result, const String& attr, bool escapeNBSP)
97 const UChar* uchars = attr.characters();
98 unsigned len = attr.length();
312 AtomicString attr = !prefix.isEmpty() ? "xmlns:" + prefix : "xmlns";
313 return !elem->hasAttribute(attr);
316 static bool shouldAddNamespaceAttr(const Attribute* attr, HashMap<AtomicStringImpl*, AtomicStringImpl*>& namespaces)
321 if (attr->name() == XMLNSNames::xmlnsAttr) {
322 namespaces.set(emptyAtom.impl(), attr->value().impl());
326 QualifiedName xmlnsPrefixAttr(xmlnsAtom, attr->localName(), XMLNSNames::xmlnsNamespaceURI);
327 if (attr->name() == xmlnsPrefixAttr) {
328 namespaces.set(attr->localName().impl(), attr->value().impl());
457 Attribute *attr = attrs->attributeItem(i);
459 if (attr->name() == styleAttr && el->isHTMLElement() && (annotate || convert))
464 append(result, attr->name().localName());
466 append(result, attr->name().toString());
470 if (el->isURLAttribute(attr))
471 appendQuotedURLAttributeValue(result, attr->value());
474 appendAttributeValue(result, attr->value(), documentIsHTML);
478 if (!documentIsHTML && namespaces && shouldAddNamespaceAttr(attr, *namespaces))
479 appendNamespace(result, attr->prefix(), attr->namespaceURI(), *namespaces);
661 Attribute* attr = attrs->attributeItem(i);
662 if (e->isURLAttribute(attr))
663 changes.append(AttributeChange(e, attr->name(), KURL(parsedBaseURL, attr->value()).string()));