Page Speed Optimization Libraries
1.13.35.1
|
#include "doctype.h"
Public Member Functions | |
DocType (const DocType &src) | |
DocType & | operator= (const DocType &src) |
bool | operator== (const DocType &other) const |
bool | operator!= (const DocType &other) const |
bool | IsXhtml () const |
Return true iff this is a known XHTML doctype (of some version). | |
bool | IsVersion5 () const |
Return true iff this is an HTML 5 or XHTML 5 doctype. | |
bool | Parse (const StringPiece &directive, const ContentType &content_type) |
Static Public Attributes | |
static const DocType | kUnknown |
static const DocType | kHTML5 |
static const DocType | kHTML4Strict |
static const DocType | kHTML4Transitional |
static const DocType | kXHTML5 |
static const DocType | kXHTML11 |
static const DocType | kXHTML10Strict |
static const DocType | kXHTML10Transitional |
Holds an HTML Doctype declaration, providing a parsing mechanism and queries for properties.
bool net_instaweb::DocType::Parse | ( | const StringPiece & | directive, |
const ContentType & | content_type | ||
) |
|
static |