This source file includes following definitions.
- create
- isURLAttribute
- hasLegalLinkAttribute
- subResourceAttributeName
#include "config.h"
#include "core/html/HTMLModElement.h"
#include "HTMLNames.h"
namespace WebCore {
using namespace HTMLNames;
inline HTMLModElement::HTMLModElement(const QualifiedName& tagName, Document& document)
: HTMLElement(tagName, document)
{
ScriptWrappable::init(this);
}
PassRefPtr<HTMLModElement> HTMLModElement::create(const QualifiedName& tagName, Document& document)
{
return adoptRef(new HTMLModElement(tagName, document));
}
bool HTMLModElement::isURLAttribute(const Attribute& attribute) const
{
return attribute.name() == citeAttr || HTMLElement::isURLAttribute(attribute);
}
bool HTMLModElement::hasLegalLinkAttribute(const QualifiedName& name) const
{
return name == citeAttr || HTMLElement::hasLegalLinkAttribute(name);
}
const QualifiedName& HTMLModElement::subResourceAttributeName() const
{
return citeAttr;
}
}