Page Speed Optimization Libraries  1.4.26.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Public Member Functions | Static Public Attributes
net_instaweb::DocType Class Reference

List of all members.

Public Member Functions

 DocType (const DocType &src)
DocTypeoperator= (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

Member Function Documentation

bool net_instaweb::DocType::Parse ( const StringPiece &  directive,
const ContentType content_type 
)

Given the contents of an HTML directive and the content type of the file it appears in, update this DocType to match that specified by the directive and return true. If the directive is not a doctype directive, return false and don't alter the DocType.


Member Data Documentation

Todo:
TODO(mdsteele): Add more such methods as necessary.

The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines