public class HtmlUtil
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
HtmlUtil.CustomXmlTagDescriptor |
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CLASS_ATTRIBUTE_NAME |
static java.lang.String |
HTML5_DATA_ATTR_PREFIX |
static java.lang.String |
ID_ATTRIBUTE_NAME |
static java.lang.String |
MATH_ML_NAMESPACE |
static java.lang.String[] |
RFC2616_HEADERS |
static java.lang.String |
SCRIPT_TAG_NAME |
static java.lang.String |
SRC_ATTRIBUTE_NAME |
static java.lang.String |
STYLE_ATTRIBUTE_NAME |
static java.lang.String |
STYLE_TAG_NAME |
static java.lang.String |
SVG_NAMESPACE |
static java.lang.String |
TEMPLATE_TAG_NAME |
Modifier and Type | Method and Description |
---|---|
static void |
addHtmlSpecificCompletions(XmlElementDescriptor descriptor,
XmlTag element,
java.util.List<? super XmlElementDescriptor> variants) |
static XmlAttributeDescriptor[] |
appendHtmlSpecificAttributeCompletions(XmlTag declarationTag,
XmlAttributeDescriptor[] descriptors,
XmlAttribute context) |
static boolean |
canTerminate(java.lang.String childTagName,
java.lang.String tagName) |
static java.nio.charset.Charset |
detectCharsetFromMetaTag(java.lang.CharSequence content) |
static XmlAttributeDescriptor[] |
getCustomAttributeDescriptors(XmlElement context) |
static XmlElementDescriptor[] |
getCustomTagDescriptors(PsiElement context) |
static java.lang.String |
getEntitiesString(PsiElement context,
java.lang.String inspectionName) |
static java.lang.String |
getHrefBase(XmlFile file) |
static java.util.List<XmlAttributeValue> |
getIncludedPathsElements(XmlFile file) |
static XmlDocument |
getRealXmlDocument(XmlDocument doc) |
static java.lang.String |
getTagPresentation(XmlTag tag) |
static boolean |
hasHtml(PsiFile file) |
static boolean |
hasHtmlPrefix(java.lang.String url) |
static boolean |
hasNonHtml5Doctype(XmlElement context) |
static boolean |
isBooleanAttribute(XmlAttributeDescriptor descriptor,
PsiElement context) |
static boolean |
isCustomBooleanAttribute(java.lang.String attributeName,
PsiElement context) |
static boolean |
isCustomHtml5Attribute(java.lang.String attributeName) |
static boolean |
isHtml5Context(XmlElement context) |
static boolean |
isHtml5Doctype(XmlDoctype doctype) |
static boolean |
isHtml5Document(XmlDocument doc) |
static boolean |
isHtml5Tag(java.lang.String tagName) |
static boolean |
isHtmlBlockTag(java.lang.String tagName) |
static boolean |
isHtmlBlockTagL(java.lang.String tagName) |
static boolean |
isHtmlFile(PsiElement element) |
static boolean |
isHtmlFile(VirtualFile file) |
static boolean |
isHtmlTag(XmlTag tag) |
static boolean |
isHtmlTagContainingFile(PsiElement element) |
static boolean |
isInlineTagContainer(java.lang.String tagName) |
static boolean |
isInlineTagContainerL(java.lang.String tagName) |
static boolean |
isOptionalEndForHtmlTag(java.lang.String tagName) |
static boolean |
isOptionalEndForHtmlTagL(java.lang.String tagName) |
static boolean |
isOwnHtmlAttribute(XmlAttributeDescriptor descriptor) |
static boolean |
isPossiblyInlineTag(java.lang.String tagName) |
static boolean |
isScriptTag(XmlTag tag) |
static boolean |
isShortNotationOfBooleanAttributePreferred() |
static boolean |
isSingleHtmlTag(java.lang.String tagName) |
static boolean |
isSingleHtmlTag(XmlTag tag,
boolean lowerCase) |
static boolean |
isSingleHtmlTagL(java.lang.String tagName) |
static boolean |
isTagWithoutAttributes(java.lang.String tagName) |
static void |
setShortNotationOfBooleanAttributeIsPreferred(boolean value,
Disposable parent) |
static java.lang.Iterable<java.lang.String> |
splitClassNames(java.lang.String classAttributeValue) |
static boolean |
supportsXmlTypedHandlers(PsiFile file) |
public static final java.lang.String HTML5_DATA_ATTR_PREFIX
public static final java.lang.String SCRIPT_TAG_NAME
public static final java.lang.String STYLE_TAG_NAME
public static final java.lang.String TEMPLATE_TAG_NAME
public static final java.lang.String STYLE_ATTRIBUTE_NAME
public static final java.lang.String SRC_ATTRIBUTE_NAME
public static final java.lang.String ID_ATTRIBUTE_NAME
public static final java.lang.String CLASS_ATTRIBUTE_NAME
public static final java.lang.String MATH_ML_NAMESPACE
public static final java.lang.String SVG_NAMESPACE
public static final java.lang.String[] RFC2616_HEADERS
public static boolean isSingleHtmlTag(XmlTag tag, boolean lowerCase)
public static boolean isSingleHtmlTag(java.lang.String tagName)
public static boolean isSingleHtmlTagL(java.lang.String tagName)
public static boolean isOptionalEndForHtmlTag(java.lang.String tagName)
public static boolean isOptionalEndForHtmlTagL(java.lang.String tagName)
public static boolean canTerminate(java.lang.String childTagName, java.lang.String tagName)
public static boolean isHtmlBlockTag(java.lang.String tagName)
public static boolean isPossiblyInlineTag(java.lang.String tagName)
public static boolean isHtmlBlockTagL(java.lang.String tagName)
public static boolean isInlineTagContainer(java.lang.String tagName)
public static boolean isInlineTagContainerL(java.lang.String tagName)
public static void addHtmlSpecificCompletions(XmlElementDescriptor descriptor, XmlTag element, java.util.List<? super XmlElementDescriptor> variants)
public static XmlDocument getRealXmlDocument(XmlDocument doc)
public static boolean isShortNotationOfBooleanAttributePreferred()
public static void setShortNotationOfBooleanAttributeIsPreferred(boolean value, Disposable parent)
public static boolean isBooleanAttribute(XmlAttributeDescriptor descriptor, PsiElement context)
public static boolean isCustomBooleanAttribute(java.lang.String attributeName, PsiElement context)
public static XmlAttributeDescriptor[] getCustomAttributeDescriptors(XmlElement context)
public static XmlElementDescriptor[] getCustomTagDescriptors(PsiElement context)
public static java.lang.String getEntitiesString(PsiElement context, java.lang.String inspectionName)
public static XmlAttributeDescriptor[] appendHtmlSpecificAttributeCompletions(XmlTag declarationTag, XmlAttributeDescriptor[] descriptors, XmlAttribute context)
public static boolean isHtml5Document(XmlDocument doc)
public static boolean isHtml5Doctype(XmlDoctype doctype)
public static boolean isHtml5Context(XmlElement context)
public static boolean isHtmlTag(XmlTag tag)
public static boolean hasNonHtml5Doctype(XmlElement context)
public static boolean isHtml5Tag(java.lang.String tagName)
public static boolean isCustomHtml5Attribute(java.lang.String attributeName)
public static java.lang.String getHrefBase(XmlFile file)
public static boolean isOwnHtmlAttribute(XmlAttributeDescriptor descriptor)
public static java.nio.charset.Charset detectCharsetFromMetaTag(java.lang.CharSequence content)
public static boolean isTagWithoutAttributes(java.lang.String tagName)
public static boolean hasHtml(PsiFile file)
public static boolean supportsXmlTypedHandlers(PsiFile file)
public static boolean hasHtmlPrefix(java.lang.String url)
public static boolean isHtmlFile(PsiElement element)
public static boolean isHtmlFile(VirtualFile file)
public static boolean isHtmlTagContainingFile(PsiElement element)
public static boolean isScriptTag(XmlTag tag)
public static java.lang.Iterable<java.lang.String> splitClassNames(java.lang.String classAttributeValue)
public static java.lang.String getTagPresentation(XmlTag tag)
public static java.util.List<XmlAttributeValue> getIncludedPathsElements(XmlFile file)