{"action":"created","issue":{"url":"https://api.github.com/repos/magento/magento2/issues/3254","repository_url":"https://api.github.com/repos/magento/magento2","labels_url":"https://api.github.com/repos/magento/magento2/issues/3254/labels{/name}","comments_url":"https://api.github.com/repos/magento/magento2/issues/3254/comments","events_url":"https://api.github.com/repos/magento/magento2/issues/3254/events","html_url":"https://github.com/magento/magento2/issues/3254","id":130672525,"number":3254,"title":"Using p for htmlTag outputs incorrectly","user":{"login":"chicgeek","id":771236,"avatar_url":"https://avatars.githubusercontent.com/u/771236?v=3","gravatar_id":"","url":"https://api.github.com/users/chicgeek","html_url":"https://github.com/chicgeek","followers_url":"https://api.github.com/users/chicgeek/followers","following_url":"https://api.github.com/users/chicgeek/following{/other_user}","gists_url":"https://api.github.com/users/chicgeek/gists{/gist_id}","starred_url":"https://api.github.com/users/chicgeek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chicgeek/subscriptions","organizations_url":"https://api.github.com/users/chicgeek/orgs","repos_url":"https://api.github.com/users/chicgeek/repos","events_url":"https://api.github.com/users/chicgeek/events{/privacy}","received_events_url":"https://api.github.com/users/chicgeek/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-02-02T12:45:48Z","updated_at":"2016-02-03T11:35:42Z","closed_at":null,"body":"## Description\r\nI have an XML file that creates a new container. It is using a `<p>` element, one of the valid element types for `htmlTag`. Using the `move` directive, I relocate `top.search` into this new element.\r\n\r\n## XML source\r\n\r\nThe XML:\r\n\r\n    <?xml version=\"1.0\"?>\r\n    <page>\r\n        <body>\r\n            <referenceContainer name=\"main.content\">\r\n                <container name=\"new.container\" htmlTag=\"p\" htmlClass=\"new-container\" />\r\n            </referenceContainer>\r\n            <move element=\"top.search\" destination=\"new.container\" />\r\n        </body>\r\n    </page>\r\n\r\n## HTML output\r\n\r\nExpected markup output:\r\n\r\n    <p class=\"new-container\">\r\n        <!-- top.search -->\r\n    </p>\r\n\r\nActual markup output:\r\n\r\n    <p class=\"new-container\"></p>\r\n    <!-- top.search -->\r\n    <p></p>\r\n\r\n## Notes\r\n\r\n* This is on merchant_beta 8 on both our custom theme and Luma.\r\n* This bug does *not* occur with some of the other allowed elements I've tested, including `div` and `ul`. The block is nested in the new container as expected.\r\n* [The docs](http://devdocs.magento.com/guides/v2.0/frontend-dev-guide/layouts/xml-instructions.html#fedg_layout_xml-instruc_ex_cont) specify `Any valid HTML 5 tag` can be used for `htmlTag`, though _this is not the case currently_. This mismatch is partly covered in issue https://github.com/magento/magento2/issues/2549. M2 provides the error: `Html tag \"aside\" is forbidden for usage in containers. Consider to use one of the allowed: dd, div, dl, fieldset, main, header, footer, ol, p, section, table, tfoot, ul.`"},"comment":{"url":"https://api.github.com/repos/magento/magento2/issues/comments/179178623","html_url":"https://github.com/magento/magento2/issues/3254#issuecomment-179178623","issue_url":"https://api.github.com/repos/magento/magento2/issues/3254","id":179178623,"user":{"login":"chicgeek","id":771236,"avatar_url":"https://avatars.githubusercontent.com/u/771236?v=3","gravatar_id":"","url":"https://api.github.com/users/chicgeek","html_url":"https://github.com/chicgeek","followers_url":"https://api.github.com/users/chicgeek/followers","following_url":"https://api.github.com/users/chicgeek/following{/other_user}","gists_url":"https://api.github.com/users/chicgeek/gists{/gist_id}","starred_url":"https://api.github.com/users/chicgeek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chicgeek/subscriptions","organizations_url":"https://api.github.com/users/chicgeek/orgs","repos_url":"https://api.github.com/users/chicgeek/repos","events_url":"https://api.github.com/users/chicgeek/events{/privacy}","received_events_url":"https://api.github.com/users/chicgeek/received_events","type":"User","site_admin":false},"created_at":"2016-02-03T11:35:42Z","updated_at":"2016-02-03T11:35:42Z","body":"The output is:\r\n\r\n    <div class=\"new-container\">\r\n        <!-- top.search -->\r\n    </div>"}}