[WebProfilerBundle] fix html lint on (other) empty onclick
*This is for the empty onclick that appeared in 2.6* The request collector has an empty onclick="" attribute when {{ link }} isn't available. This tends to happen when rendering the debug toolbar.
This commit is contained in:
parent
2cca8617b9
commit
58bd16c3d3
@ -10,7 +10,7 @@
|
|||||||
{{ collector.controller.method }}
|
{{ collector.controller.method }}
|
||||||
</span>
|
</span>
|
||||||
{% else %}
|
{% else %}
|
||||||
<span class="sf-toolbar-info-class" onclick="{% if link %}window.location='{{link|e('js')}}';window.event.stopPropagation();return false;{% endif %}">{{ collector.controller.class|abbr_class }}</span>
|
<span class="sf-toolbar-info-class"{% if link %} onclick="window.location='{{link|e('js')}}';window.event.stopPropagation();return false;"{% endif %}>{{ collector.controller.class|abbr_class }}</span>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% else %}
|
{% else %}
|
||||||
<span class="sf-toolbar-info-class">{{ collector.controller }}</span>
|
<span class="sf-toolbar-info-class">{{ collector.controller }}</span>
|
||||||
|
Reference in New Issue
Block a user