[WebProfilerBundle] fix html linting on empty onclick
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
f77d710881
commit
a3a2f153c7
|
@ -5,7 +5,7 @@
|
|||
{% if collector.controller.class is defined %}
|
||||
{% set link = collector.controller.file|file_link(collector.controller.line) %}
|
||||
<span class="sf-toolbar-info-class sf-toolbar-info-with-next-pointer">{{ collector.controller.class|abbr_class }}</span>
|
||||
<span class="sf-toolbar-info-method" onclick="{% if link %}window.location='{{link|e('js')}}';window.event.stopPropagation();return false;{% endif %}">
|
||||
<span class="sf-toolbar-info-method"{% if link %} onclick="window.location='{{link|e('js')}}';window.event.stopPropagation();return false;"{% endif %}>
|
||||
{{ collector.controller.method }}
|
||||
</span>
|
||||
{% else %}
|
||||
|
|
Reference in New Issue