public int getTargetDocumentType ( ) { if ( _rendering != TagRenderingBase . UNKNOWN_RENDERING ) return _rendering ; if ( _docType != null ) { if ( _docType . equals ( HTML_401 ) ) _rendering = TagRenderingBase . HTML_RENDERING ; else if ( _docType . equals ( HTML_401_QUIRKS ) ) _rendering = TagRenderingBase . HTML_RENDERING_QUIRKS ; else if ( _docType . equals ( XHTML_10 ) ) _rendering = TagRenderingBase . XHTML_RENDERING ; else _rendering = TagRenderingBase . getDefaultDocType ( ) ; } else { _rendering = TagRenderingBase . getDefaultDocType ( ) ; } return _rendering ; }
This method will return the TagRenderBase enum value for the document type . The default value is HTML 4 . 01 .