Skip to content

Commit 00676bc

Browse files
committed
bug symfony#49223 [WebProfilerBundle] Fix some minor HTML issues (javiereguiluz)
This PR was squashed before being merged into the 5.4 branch. Discussion ---------- [WebProfilerBundle] Fix some minor HTML issues | Q | A | ------------- | --- | Branch? | 5.4 | Bug fix? | yes | New feature? | no | Deprecations? | no | Tickets | - | License | MIT | Doc PR | - In symfony#49205 we're fixing deprecations, so I chose 6.3 branch. Here we are fixing bugs related to invalid HTML contents, so that's why I chose 5.4 branch. The issue related to `<summary>` is that it only allows tags that can be included inside a `<p>`, but not `<p>` itself (verified with https://validator.w3.org/): <img width="502" alt="summary-p" src="https://user-images.githubusercontent.com/73419/216625646-73f7f73d-a315-43da-9d9a-44ce430c70e5.png"> Commits ------- 31ce660 [WebProfilerBundle] Fix some minor HTML issues
2 parents b33bf07 + 31ce660 commit 00676bc

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

src/Symfony/Bundle/WebProfilerBundle/Resources/views/Collector/logger.html.twig

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -131,8 +131,10 @@
131131
</colgroup>
132132

133133
<thead>
134-
<th>Time</th>
135-
<th>Message</th>
134+
<tr>
135+
<th>Time</th>
136+
<th>Message</th>
137+
</tr>
136138
</thead>
137139

138140
<tbody>
@@ -185,7 +187,7 @@
185187
<details class="container-compilation-logs">
186188
<summary>
187189
<h4>Container Compilation Logs <span class="text-muted">({{ compilerLogTotal }})</span></h4>
188-
<p class="text-muted">Log messages generated during the compilation of the service container.</p>
190+
<span class="text-muted">Log messages generated during the compilation of the service container.</span>
189191
</summary>
190192

191193
{% if collector.compilerLogs is empty %}

src/Symfony/Component/ErrorHandler/Resources/views/error.html.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<!DOCTYPE html>
2-
<html>
2+
<html lang="en">
33
<head>
44
<meta charset="<?= $this->charset; ?>" />
55
<meta name="robots" content="noindex,nofollow,noarchive" />

0 commit comments

Comments
 (0)