Ruby on Rails | Screencasts | Download | Documentation | Weblog | Community | Source

Ticket #3171 (closed defect: fixed)

Opened 3 years ago

Last modified 3 years ago

[PATCH] 0.14.4: Error scaffolding CSS breaks with XHTML

Reported by: Blair Zajac <blair@orcaware.com> Assigned to: David
Priority: normal Milestone:
Component: Railties Version: 0.14.3
Severity: normal Keywords: fd
Cc:

Description

I recently added this to the top of my app/views/layouts/*.rhtml

<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
                      "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

Unfortunately, when you do that, the CSS selectors that place the red box around any flash errors no longer match in Firefix 1.0.7.

The problem appears to be that the id selector in XML is case sensitive while in HTML is not:

http://www.w3.org/TR/CSS21/syndata.html#q6

So the CSS file has 'ErrorExplanation' while the generated HTML and Ruby code all has 'errorExplanation'.

This patch changes all the leading E's to e's to be consistent with the other CSS names.

Regards, Blair

Attachments

ror-0.14.4-xhtml-case-senstive-css-ids.txt (2.8 kB) - added by blair on 12/10/05 01:51:21.

Change History

12/10/05 01:51:21 changed by blair

  • attachment ror-0.14.4-xhtml-case-senstive-css-ids.txt added.

12/22/05 18:23:21 changed by david

  • keywords set to fd.

01/13/06 21:29:01 changed by nzkoz

  • status changed from new to closed.
  • resolution set to fixed.

(In [3416]) Correct the case of the CSS declarations. [Blair Zajac] Closes #3171