From 73f4f4aa8fc33fdd72e98f397b876a5a5e6528cf Mon Sep 17 00:00:00 2001 From: Sam Ruby Date: Wed, 2 Jan 2013 16:06:54 -0500 Subject: Fix a number of validation/style errors: *
 is not allowed to be nested inside of 

elements in HTML * Indentation of

doesn't match corresponding

*

element not explicitly closed * One more than

In each case, the template was fixed to match how a HTML5 parser would "see" the resulting page. --- .../middleware/templates/rescues/_request_and_response.erb | 8 ++++---- .../middleware/templates/rescues/template_error.erb | 7 +++---- 2 files changed, 7 insertions(+), 8 deletions(-) (limited to 'actionpack/lib/action_dispatch/middleware') diff --git a/actionpack/lib/action_dispatch/middleware/templates/rescues/_request_and_response.erb b/actionpack/lib/action_dispatch/middleware/templates/rescues/_request_and_response.erb index d117dc4235..10de228f1d 100644 --- a/actionpack/lib/action_dispatch/middleware/templates/rescues/_request_and_response.erb +++ b/actionpack/lib/action_dispatch/middleware/templates/rescues/_request_and_response.erb @@ -18,17 +18,17 @@ %>

Request

-

Parameters:

<%=h request_dump %>

+

Parameters:

<%=h request_dump %>
- +
- +

Response

-

Headers:

<%=h defined?(@response) ? @response.headers.inspect.gsub(',', ",\n") : 'None' %>

+

Headers:

<%=h defined?(@response) ? @response.headers.inspect.gsub(',', ",\n") : 'None' %>
diff --git a/actionpack/lib/action_dispatch/middleware/templates/rescues/template_error.erb b/actionpack/lib/action_dispatch/middleware/templates/rescues/template_error.erb index 01faf5a475..9f3816bf40 100644 --- a/actionpack/lib/action_dispatch/middleware/templates/rescues/template_error.erb +++ b/actionpack/lib/action_dispatch/middleware/templates/rescues/template_error.erb @@ -9,12 +9,12 @@

Showing <%=h @exception.file_name %> where line #<%=h @exception.line_number %> raised: -

<%=h @exception.message %>
-

+

+
<%=h @exception.message %>
-

Extracted source (around line #<%=h @exception.line_number %>): +

Extracted source (around line #<%=h @exception.line_number %>):

@@ -40,5 +40,4 @@ <%= render template: "rescues/_trace" %> <%= render template: "rescues/_request_and_response" %> - -- cgit v1.2.3