{"action":"closed","issue":{"url":"https://api.github.com/repos/thymeleaf/thymeleaf/issues/485","repository_url":"https://api.github.com/repos/thymeleaf/thymeleaf","labels_url":"https://api.github.com/repos/thymeleaf/thymeleaf/issues/485/labels{/name}","comments_url":"https://api.github.com/repos/thymeleaf/thymeleaf/issues/485/comments","events_url":"https://api.github.com/repos/thymeleaf/thymeleaf/issues/485/events","html_url":"https://github.com/thymeleaf/thymeleaf/issues/485","id":146607096,"number":485,"title":"Custom attribute not being processed in th:block","user":{"login":"juanitocalero","id":14786321,"avatar_url":"https://avatars.githubusercontent.com/u/14786321?v=3","gravatar_id":"","url":"https://api.github.com/users/juanitocalero","html_url":"https://github.com/juanitocalero","followers_url":"https://api.github.com/users/juanitocalero/followers","following_url":"https://api.github.com/users/juanitocalero/following{/other_user}","gists_url":"https://api.github.com/users/juanitocalero/gists{/gist_id}","starred_url":"https://api.github.com/users/juanitocalero/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/juanitocalero/subscriptions","organizations_url":"https://api.github.com/users/juanitocalero/orgs","repos_url":"https://api.github.com/users/juanitocalero/repos","events_url":"https://api.github.com/users/juanitocalero/events{/privacy}","received_events_url":"https://api.github.com/users/juanitocalero/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/thymeleaf/thymeleaf/labels/tracker:question","name":"tracker:question","color":"9b7a04"}],"state":"closed","locked":false,"assignee":{"login":"danielfernandez","id":1492299,"avatar_url":"https://avatars.githubusercontent.com/u/1492299?v=3","gravatar_id":"","url":"https://api.github.com/users/danielfernandez","html_url":"https://github.com/danielfernandez","followers_url":"https://api.github.com/users/danielfernandez/followers","following_url":"https://api.github.com/users/danielfernandez/following{/other_user}","gists_url":"https://api.github.com/users/danielfernandez/gists{/gist_id}","starred_url":"https://api.github.com/users/danielfernandez/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/danielfernandez/subscriptions","organizations_url":"https://api.github.com/users/danielfernandez/orgs","repos_url":"https://api.github.com/users/danielfernandez/repos","events_url":"https://api.github.com/users/danielfernandez/events{/privacy}","received_events_url":"https://api.github.com/users/danielfernandez/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/thymeleaf/thymeleaf/milestones/11","html_url":"https://github.com/thymeleaf/thymeleaf/milestones/Thymeleaf%203.0","labels_url":"https://api.github.com/repos/thymeleaf/thymeleaf/milestones/11/labels","id":213281,"number":11,"title":"Thymeleaf 3.0","description":"","creator":{"login":"danielfernandez","id":1492299,"avatar_url":"https://avatars.githubusercontent.com/u/1492299?v=3","gravatar_id":"","url":"https://api.github.com/users/danielfernandez","html_url":"https://github.com/danielfernandez","followers_url":"https://api.github.com/users/danielfernandez/followers","following_url":"https://api.github.com/users/danielfernandez/following{/other_user}","gists_url":"https://api.github.com/users/danielfernandez/gists{/gist_id}","starred_url":"https://api.github.com/users/danielfernandez/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/danielfernandez/subscriptions","organizations_url":"https://api.github.com/users/danielfernandez/orgs","repos_url":"https://api.github.com/users/danielfernandez/repos","events_url":"https://api.github.com/users/danielfernandez/events{/privacy}","received_events_url":"https://api.github.com/users/danielfernandez/received_events","type":"User","site_admin":false},"open_issues":1,"closed_issues":148,"state":"open","created_at":"2012-11-14T23:08:17Z","updated_at":"2016-04-16T22:57:52Z","due_on":null,"closed_at":null},"comments":2,"created_at":"2016-04-07T12:39:27Z","updated_at":"2016-04-16T22:57:52Z","closed_at":"2016-04-16T22:57:52Z","body":"I've created a custom dialect for thymeleaf 3.0 (Using BETA02) with a simple attribute `when`, mixing `th:with` and `th:if` functionality.\r\nIt's based in th:with but If the resulting variable evaluates to false, it acts as `if` and removes the content.\r\nIt also understands Java 8 Optional, evaluating to the content if it is present.\r\n\r\n[WhenTagProcessor.txt](https://github.com/thymeleaf/thymeleaf/files/208369/WhenTagProcessor.txt)\r\n\r\nI'm testing it and works fine (is very useful to avoid repetitive nested th:with th:if) But if my custom attribute is placed in a `th:block`, my element processor is never called. The content is rendered and it fails when it encounters a variable.\r\n\r\nI don't know if its a problem of my custom element processor. I would need a better understanding of the elements and attributes processing algorithm. \r\n"}}