Class MicrosoftTagTypes
The tag type defined in this class is not registered by default.
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic booleanDeprecated.Indicates whether the specified tag type is defined in this class.static voidDeprecated.Deregisters all of the tag types defined in this class at once.static booleanDeprecated.Indicates whether the specified tag is a downlevel-revealed conditional comment "endif" tag (<![endif]>).static booleanDeprecated.Indicates whether the specified tag is a downlevel-revealed conditional comment "if" tag (<![if ... ]>).static voidregister()Deprecated.Registers all of the tag types defined in this class at once.
-
Field Details
-
DOWNLEVEL_REVEALED_CONDITIONAL_COMMENT
Deprecated.The tag type given to a Microsoft® downlevel-revealed conditional comment (<![if ... ]>|<![endif]>).The only valid names for tags of this type are "
![if" and "![endif".This start tag type is used to represent both the "if" and "endif" tags. Because the "endif" tag can not be represented by an end tag type (it doesn't start with "
</"), the parser makes no attempt to match if-endif tag pairs to form elements.The
isConditionalCommentIfTag(Tag)andisConditionalCommentEndifTag(Tag)methods provide an efficient means of determining whether a given tag is of the "if" or "endif" variety.The expression consituting the condition of an "if" tag can be extracted using the
StartTag.getTagContent()method. For example, if the variableconditionalCommentIfTagrepresents the tag<![if !IE]>, then the expressionconditionalCommentIfTag.getTagContent().toString().trim()yields the string "!IE".- Properties:
-
Property Value DescriptionMicrosoft downlevel-revealed conditional comment StartDelimiter<![ClosingDelimiter]>IsServerTagfalseNamePrefix![CorrespondingEndTagTypenullHasAttributesfalseIsNameAfterPrefixRequiredtrue - Example:
<![if !IE]>
-
-
Method Details
-
isConditionalCommentIfTag
Deprecated.Indicates whether the specified tag is a downlevel-revealed conditional comment "if" tag (<![if ... ]>).- Parameters:
tag- theTagto test.- Returns:
trueif the specified tag is a conditional comment "if" tag, otherwisefalse.
-
isConditionalCommentEndifTag
Deprecated.Indicates whether the specified tag is a downlevel-revealed conditional comment "endif" tag (<![endif]>).- Parameters:
tag- theTagto test.- Returns:
trueif the specified tag is a conditional comment "endif" tag, otherwisefalse.
-
register
public static void register()Deprecated.Registers all of the tag types defined in this class at once.The tag types must be registered before the parser will recognise them.
-
deregister
public static void deregister()Deprecated.Deregisters all of the tag types defined in this class at once. -
defines
-
MicrosoftConditionalCommentTagTypesinstead.