# Plugin-outlet incorrectly handles multiple plugins at the same outlet

**URL:** <https://meta.discourse.org/t/plugin-outlet-incorrectly-handles-multiple-plugins-at-the-same-outlet/32206>\
**Category:** Bug\
**Created:** [Agosto 17, 2015, 4:03pm UTC](https://meta.discourse.org/t/plugin-outlet-incorrectly-handles-multiple-plugins-at-the-same-outlet/32206 "2015-08-17T16:03:01Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![dmitry\_fedyuk](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/dmitry_fedyuk/32/293153_2.png) [@dmitry\_fedyuk](https://meta.discourse.org/u/dmitry_fedyuk)\
**Post date:** [Agosto 17, 2015, 4:03pm UTC](https://meta.discourse.org/t/plugin-outlet-incorrectly-handles-multiple-plugins-at-the-same-outlet/32206/1 "2015-08-17T16:03:01Z")

</div>

Wrong code is:

> <https://github.com/discourse/discourse/blob/v1.4.0.beta9/app/assets/javascripts/discourse/helpers/plugin-outlet.js.es6#L158>

Must be `Ember.ContainerView.extend({tagName: ''})` instead of `Ember.ContainerView`.  
The current wrong code **breaks HTML markup** in cases where HTML syntax does not allow wrapper `DIV` tag.  
An example is `admin-menu` plugin outlet:

> <https://github.com/discourse/discourse/blob/v1.4.0.beta9/app/assets/javascripts/admin/templates/admin.hbs#L26>

If there are multiple `admin-menu` connectors then Discourse wrongly renders them as:

```plaintext
<ul>
	<!-- standard menu items: -->
	<li></li>
	<li></li>
	<!-- admin-menu connectors: -->
	<div>
		<li></li>
		<li></li>
	</div>
</ul>

```

---

_[View the full topic](https://meta.discourse.org/t/plugin-outlet-incorrectly-handles-multiple-plugins-at-the-same-outlet/32206)._
