{"action":"opened","issue":{"url":"https://api.github.com/repos/thymeleaf/thymeleaf/issues/373","labels_url":"https://api.github.com/repos/thymeleaf/thymeleaf/issues/373/labels{/name}","comments_url":"https://api.github.com/repos/thymeleaf/thymeleaf/issues/373/comments","events_url":"https://api.github.com/repos/thymeleaf/thymeleaf/issues/373/events","html_url":"https://github.com/thymeleaf/thymeleaf/issues/373","id":85855907,"number":373,"title":"Cannot pass arguments to fragment, if fragment name is the same as already used tag","user":{"login":"globalbus","id":12781333,"avatar_url":"https://avatars.githubusercontent.com/u/12781333?v=3","gravatar_id":"","url":"https://api.github.com/users/globalbus","html_url":"https://github.com/globalbus","followers_url":"https://api.github.com/users/globalbus/followers","following_url":"https://api.github.com/users/globalbus/following{/other_user}","gists_url":"https://api.github.com/users/globalbus/gists{/gist_id}","starred_url":"https://api.github.com/users/globalbus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/globalbus/subscriptions","organizations_url":"https://api.github.com/users/globalbus/orgs","repos_url":"https://api.github.com/users/globalbus/repos","events_url":"https://api.github.com/users/globalbus/events{/privacy}","received_events_url":"https://api.github.com/users/globalbus/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-06-07T04:47:06Z","updated_at":"2015-06-07T04:47:06Z","closed_at":null,"body":"Take this as a example\r\n\r\n    <!DOCTYPE html>\r\n    <html xmlns:th=\"http://www.thymeleaf.org\">\r\n    <div>\r\n\t<button></button>\r\n\t<div></div>\r\n\r\n\t<div th:fragment=\"button(countArg)\">\r\n\t\t<div th:text=\"${countArg+1}\">Add file</div>\r\n\t</div>\r\n    </div>\r\n    </html>\r\n\r\nIf I use somewhere in the same file tag with name of any defined fragment (in this example, \"button\"), arguments passed to fragment will not be accessible (nulls). Position of tag is irrelevant.\r\nThis fragment, loaded anywhere, will cause an error in expression evaluation (null+1)\r\n\r\nError is not very problematic (I only need to change the name of fragment), but can be very tricky."}}