[ https://issues.apache.org/jira/browse/ANY23-247?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15223033#comment-15223033 ]
Hudson commented on ANY23-247: ------------------------------ UNSTABLE: Integrated in Any23-trunk #1468 (See [https://builds.apache.org/job/Any23-trunk/1468/]) ANY23-247 FIX Attribute name itemscope associated with an element type (lewis.j.mcgibbney: rev fc4593272a2e331ac5abfbe8ef1c46713a2b6f7f) * core/src/test/java/org/apache/any23/validator/DefaultValidatorTest.java * core/src/test/java/org/apache/any23/Any23Test.java * core/src/main/java/org/apache/any23/extractor/SingleDocumentExtraction.java * test-resources/src/test/resources/org/apache/any23/validator/microdata-basic.html * core/src/main/java/org/apache/any23/extractor/rdf/BaseRDFExtractor.java * core/src/main/java/org/apache/any23/validator/rule/MissingOpenGraphNamespaceRule.java * core/src/main/java/org/apache/any23/validator/rule/OpenGraphNamespaceFix.java * src/site/apt/index.apt * core/src/main/java/org/apache/any23/validator/DefaultValidator.java * core/src/main/java/org/apache/any23/validator/rule/MetaNameMisuseFix.java * core/src/main/java/org/apache/any23/validator/rule/MissingItemscopeAttributeValueRule.java * core/src/test/resources/log4j.properties * core/src/main/java/org/apache/any23/validator/rule/MissingItemscopeAttributeValueFix.java * core/src/main/java/org/apache/any23/validator/rule/MetaNameMisuseRule.java > FIX Attribute name "itemscope" associated with an element type "html" must be > followed by the ' = ' character. > -------------------------------------------------------------------------------------------------------------- > > Key: ANY23-247 > URL: https://issues.apache.org/jira/browse/ANY23-247 > Project: Apache Any23 > Issue Type: Improvement > Affects Versions: 1.1 > Reporter: Lewis John McGibbney > Assignee: Lewis John McGibbney > Fix For: 1.2 > > > In the following markup > {code} > <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" > "http://www.w3.org/TR/html4/loose.dtd"> > <html xmlns="http://www.w3.org/1999/xhtml" > xmlns:og="http://opengraphprotocol.org/schema/" > xmlns:fb="http://www.facebook.com/2008/fbml" version="HTML+RDFa 1.0" > xml:lang="en" itemscope itemtype="http://schema.org/Product"> > <head> > <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> > <meta http-equiv="X-UA-Compatible" content="IE=edge" /> > <meta name="generator" content="ToolTwist" /> > ... > {code} > Due to the absence of any subsequent value for *itemscope*, we get the > following error in our web server logs > {code} > [Fatal Error] :2:185: Attribute name "itemscope" associated with an element > type "html" must be followed by the ' = ' character. > {code} > Although the markup semantics are incorrect, Any23 should simply perform a > check for the itemscope value being null, if this is the case then add *=""*, > there is a precedent for us doing something like this before, I just cant > find the ticket right now! > The code we need to add is present within either > core/src/main/java/org/apache/any23/extractor/microdata/ItemScope.java > core/src/main/java/org/apache/any23/extractor/microdata/MicrodataParser.java -- This message was sent by Atlassian JIRA (v6.3.4#6332)