-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
[WebProfilerBundle] Fixed profiler toolbar icons for XHTML. #9877
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
-1 The profiler uses the html 5 doctype, why should we want to support xHTML? |
@wouterj I guess the issue reveals itself if you use the toolbar with an xhtml site, since the toolbar is injected into your website's html. |
@rafalwrzeszcz sorry, I always forget that the toolbar isn't loaded in an iframe. And no, xHTML5 does not exists, not even xHTML2 😉 |
To be precise, the toolbar is loaded via an Ajax call into the current document. |
Yes, but it's then inserted directly into document tree with |
👍 but you should make all pages xhtml compatible. Its missing in Profiler views: admin.html.twig, base.html.twig, header.html.twig, layout.html.twig, search.html.twig. And also some Collector views. |
@rafalwrzeszcz Can you add a space before the |
XHTML5 is just a more strict version of HTML5 (xml compatible). I didn't say to return the xhtml mime type. We should just try to make the syntax of the profiler also xhtml compatible for consistency. Otherwise we could also remove many end tags from the profiler because
is also valid HTML5. |
@Tobion Yes, but (1) I think it's out of scope of this PR (it's just about bugix) and (2) it would produce excessive diff without any real benefit. |
@rafalwrzeszcz agreed. As this is a bug fix, can you submit a PR on 2.3 instead? |
#9948 is the correct one now as it points correct branch. |
… (rafalwrzeszcz) This PR was squashed before being merged into the 2.3 branch (closes #9948). Discussion ---------- [WebProfilerBundle] Fixed profiler toolbar icons for XHTML. | Q | A | ------------- | --- | Bug fix? | yes | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | n/a | Fixed tickets | n/a | License | MIT | Doc PR | n/a Profiler page itself is entirely autonomic, but toolbar is not - unfortunately currently it doesn't work in XHTML documents :(. #9877 backported to `2.3` branch. Commits ------- 296c4d1 [WebProfilerBundle] Fixed profiler toolbar icons for XHTML.
… XHTML. (rafalwrzeszcz) This PR was squashed before being merged into the 2.3 branch (closes symfony#9948). Discussion ---------- [WebProfilerBundle] Fixed profiler toolbar icons for XHTML. | Q | A | ------------- | --- | Bug fix? | yes | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | n/a | Fixed tickets | n/a | License | MIT | Doc PR | n/a Profiler page itself is entirely autonomic, but toolbar is not - unfortunately currently it doesn't work in XHTML documents :(. symfony#9877 backported to `2.3` branch. Commits ------- 296c4d1 [WebProfilerBundle] Fixed profiler toolbar icons for XHTML.
Profiler page itself is entirely autonomic, but toolbar is not - unfortunately currently it doesn't work in XHTML documents :(.