sling-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From romb...@apache.org
Subject [sling-org-apache-sling-hapi] 19/27: SLING-6709 The HAPI implementation doesn't provide the correct attribute type for itemscope
Date Wed, 18 Oct 2017 23:24:35 GMT
This is an automated email from the ASF dual-hosted git repository.

rombert pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/sling-org-apache-sling-hapi.git

commit f4e38a16d0e44665c7bfbd5f847af03a82d70d9d
Author: Andrei Dulvac <dulvac@apache.org>
AuthorDate: Mon Mar 27 09:51:42 2017 +0000

    SLING-6709 The HAPI implementation doesn't provide the correct attribute type for itemscope
    
    git-svn-id: https://svn.apache.org/repos/asf/sling/trunk@1788868 13f79535-47bb-0310-9956-ffa450edef68
---
 .../java/org/apache/sling/hapi/impl/MicrodataAttributeHelperImpl.java  | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/src/main/java/org/apache/sling/hapi/impl/MicrodataAttributeHelperImpl.java b/src/main/java/org/apache/sling/hapi/impl/MicrodataAttributeHelperImpl.java
index b78ef5d..c94ad10 100644
--- a/src/main/java/org/apache/sling/hapi/impl/MicrodataAttributeHelperImpl.java
+++ b/src/main/java/org/apache/sling/hapi/impl/MicrodataAttributeHelperImpl.java
@@ -63,8 +63,7 @@ public class MicrodataAttributeHelperImpl implements MicrodataAttributeHelper
{
     public Map<String, String> itemtypeMap() {
         Map<String, String> attrMap = new AttrMap(2);
         attrMap.put("itemtype", type.getUrl());
-        attrMap.put("itemscope", String.valueOf(!type.getAllProperties().isEmpty()));
-        
+        attrMap.put("itemscope", "itemscope");
         return attrMap;
     }
 

-- 
To stop receiving notification emails like this one, please contact
"commits@sling.apache.org" <commits@sling.apache.org>.

Mime
View raw message