#ifndef HTMLTableSectionElement_h
#define HTMLTableSectionElement_h
#include "core/html/HTMLTablePartElement.h"
namespace WebCore {
class ExceptionState;
class HTMLTableSectionElement FINAL : public HTMLTablePartElement {
public:
static PassRefPtr<HTMLTableSectionElement> create(const QualifiedName&, Document&);
PassRefPtr<HTMLElement> insertRow(int index, ExceptionState&);
void deleteRow(int index, ExceptionState&);
int numRows() const;
PassRefPtr<HTMLCollection> rows();
private:
HTMLTableSectionElement(const QualifiedName& tagName, Document&);
virtual const StylePropertySet* additionalPresentationAttributeStyle() OVERRIDE;
};
inline bool isHTMLTableSectionElement(const Element& element)
{
return element.hasTagName(HTMLNames::tbodyTag) || element.hasTagName(HTMLNames::tfootTag) || element.hasTagName(HTMLNames::theadTag);
}
inline bool isHTMLTableSectionElement(const HTMLElement& element)
{
return element.hasLocalName(HTMLNames::tbodyTag) || element.hasLocalName(HTMLNames::tfootTag) || element.hasLocalName(HTMLNames::theadTag);
}
DEFINE_HTMLELEMENT_TYPE_CASTS_WITH_FUNCTION(HTMLTableSectionElement);
}
#endif