You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@any23.apache.org by "Sebastien Richard (JIRA)" <ji...@apache.org> on 2012/11/08 20:08:12 UTC

[jira] [Created] (ANY23-132) Handle value-title class in microformat

Sebastien Richard created ANY23-132:
---------------------------------------

             Summary: Handle value-title class in microformat
                 Key: ANY23-132
                 URL: https://issues.apache.org/jira/browse/ANY23-132
             Project: Apache Any23
          Issue Type: Bug
          Components: core
            Reporter: Sebastien Richard


http://microformats.org/wiki/value-class-pattern

Proposed patch:

72,78c72,73
<         // first check if there are value-title inside
<         List<Node> values = DomUtils.findAllByClassName(node, "value-title");
<         if (!values.isEmpty()) {
<             return new TextField(values.get(0).getAttributes().getNamedItem("title").getNodeValue(), node); 
<         }
<         // next value
<         values = DomUtils.findAllByClassName(node, "value");
---
>         // first check if there are values inside
>         List<Node> values = DomUtils.findAllByClassName(node, "value");


--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira