public class XWikiValidator extends AbstractHTML5Validator
ATTR_ACCESSKEY, ATTR_ALT, ATTR_BLUR, ATTR_CHANGE, ATTR_CHARSET, ATTR_CLICK, ATTR_CONTENT, ATTR_FOCUS, ATTR_HREF, ATTR_ID, ATTR_LOAD, ATTR_MOUSEOVER, ATTR_ROLE, ATTR_SCOPE, ATTR_SELECT, ATTR_SRC, ATTR_SUBMIT, ATTR_TITLE, ATTR_TYPE, ATTR_UNLOAD, BUTTON, ELEM_AREA, ELEM_BODY, ELEM_BOLD, ELEM_BR, ELEM_FIELDSET, ELEM_FORM, ELEM_FRAME, ELEM_FRAMESET, ELEM_H1, ELEM_HTML, ELEM_IFRAME, ELEM_IMG, ELEM_INPUT, ELEM_ITALIC, ELEM_LINK, ELEM_META, ELEM_SUBMIT, ELEM_TABLE, ELEM_TH, HIDDEN, html5Document, IMAGE, MAILTO, RESET, STYLE, SUBMIT
document, documentBuilder, errorHandler
Constructor and Description |
---|
XWikiValidator() |
Modifier and Type | Method and Description |
---|---|
String |
getName() |
protected void |
validate(Document document) |
void |
validateFailingMacros()
Check if there is any rendering error in the generated XHTML.
|
void |
validateNotEmptyHeadingId()
Check if there is any heading with empty (generally generated) id value.
|
void |
validateUrlOrResourcesWithoutDoubleInterrogationMark()
Ensure that no URL or resource link contains two "?".
|
assertFalse, assertTrue, containsElement, getAttributeNames, getAttributeValue, getAttributeValues, getChildren, getChildrenTagNames, getElement, getElements, getElements, getHTML5Document, hasAttribute, hasChildElement, setDocument, setHTML5Document, validate
addError, clear, createXMLErrorHandler, getDocument, getErrorHandler, getErrors, setValidateXML
protected void validate(Document document)
validate
in class AbstractXMLValidator
document
- the XML documentpublic void validateFailingMacros()
public void validateNotEmptyHeadingId()
public void validateUrlOrResourcesWithoutDoubleInterrogationMark()
public String getName()
Copyright © 2004–2021 XWiki. All rights reserved.