Package org.apache.any23.validator.rule
Class MissingItemscopeAttributeValueRule
- java.lang.Object
-
- org.apache.any23.validator.rule.MissingItemscopeAttributeValueRule
-
- All Implemented Interfaces:
Rule
public class MissingItemscopeAttributeValueRule extends Object implements Rule
This fixes missing attribute values for the 'itemscope' attribute Typically when such a snippet of XHTML is fed through theRDFa11Extractor
, and subsequently to Sesame's SesameRDFaParser, it will result in the following behavior.[Fatal Error] :23:15: Attribute name "itemscope" associated with an element type "div" must be followed by the ' = ' character.
-
-
Constructor Summary
Constructors Constructor Description MissingItemscopeAttributeValueRule()
Default constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
applyOn(DOMDocument document, RuleContext context, ValidationReportBuilder validationReportBuilder)
Applies this rule to the given document.String
getHRName()
-
-
-
Method Detail
-
getHRName
public String getHRName()
-
applyOn
public boolean applyOn(DOMDocument document, RuleContext context, ValidationReportBuilder validationReportBuilder)
Description copied from interface:Rule
Applies this rule to the given document.- Specified by:
applyOn
in interfaceRule
- Parameters:
document
- the target document.context
- the context used to pass data to an eventualFix
.validationReportBuilder
- the report builder used to collect rule reporting.- Returns:
true
if al least an issue is detected,false
otherwise.- See Also:
Rule.applyOn(org.apache.any23.validator.DOMDocument, org.apache.any23.validator.RuleContext, org.apache.any23.validator.ValidationReportBuilder)
-
-