Skip to content

[Debug] More compact HTML #18841

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

Merged
merged 1 commit into from
May 24, 2016
Merged

[Debug] More compact HTML #18841

merged 1 commit into from
May 24, 2016

Conversation

c960657
Copy link
Contributor

@c960657 c960657 commented May 22, 2016

Q A
Branch? master
Bug fix? no
New feature? no
BC breaks? no
Deprecations? no
Tests pass? yes
Fixed tickets
License MIT
Doc PR

This patch makes the HTML output for exception stack traces slightly more compact. This makes the stack trace a bit more readable when inspecting the HTML source, e.g. when using cURL.

  1. Vendor-specific prefixes for border-radius are removed. They are not relevant in any modern browser.
  2. The ondblclick is now added only once and relies on event bubbling rather than being added to every <li> in the stack trace.
  3. Single quotes are not escaped. Escaping single quotes is only required for values enclosed in single quoted HTML attributes - all our attributes are double-quoted.

@javiereguiluz
Copy link
Member

javiereguiluz commented May 22, 2016

👍

We intend to revamp this page soon ... but this looks like a quick win while we do that.

@fabpot
Copy link
Member

fabpot commented May 24, 2016

Thank you @c960657.

@fabpot fabpot merged commit 9613b75 into symfony:master May 24, 2016
fabpot added a commit that referenced this pull request May 24, 2016
This PR was merged into the 3.2-dev branch.

Discussion
----------

[Debug] More compact HTML

| Q             | A
| ------------- | ---
| Branch?       | master
| Bug fix?      | no
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets |
| License       | MIT
| Doc PR        |

This patch makes the HTML output for exception stack traces slightly more compact. This makes the stack trace a bit more readable when inspecting the HTML source, e.g. when using cURL.

1. Vendor-specific prefixes for border-radius are removed. They are not relevant [in any modern browser](http://caniuse.com/border-radius).
2. The ondblclick is now added only once and relies on event bubbling rather than being added to every `<li>` in the stack trace.
3. Single quotes are not escaped. Escaping single quotes is only required for values enclosed in single quoted HTML attributes - all our attributes are double-quoted.

Commits
-------

9613b75 [Debug] More compact HTML
@c960657 c960657 deleted the debug-compact branch May 27, 2016 08:26
@c960657
Copy link
Contributor Author

c960657 commented May 31, 2016

Any chance this could be merged into a release branch? It does not affect BC.

(I can see that the policy (or the description of the policy, at least) on which branch to submit against has been updated recently. In the future I will submit PRs for such changes against the release branch)

@fabpot
Copy link
Member

fabpot commented May 31, 2016

You should probably refer to http://symfony.com/doc/current/contributing/code/maintenance.html instead.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants