[MAGNOLIA-337] Cannot Edit Pages in Internet Explorer due to Invalid Script Tag Created: 18/Apr/05 Updated: 20/Feb/15 Resolved: 25/Apr/05 |
|
| Status: | Closed |
| Project: | Magnolia |
| Component/s: | samples |
| Affects Version/s: | None |
| Fix Version/s: | 2.1 Final |
| Type: | Bug | Priority: | Major |
| Reporter: | Titus Barik | Assignee: | Fabrizio Giustina |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Environment: |
Resin or Tomcat, Internet Explorer. Works in Mozilla Firefox. |
||
| Attachments: |
|
| Template: |
|
| Acceptance criteria: |
Empty
|
| Task DoD: |
[ ]*
Doc/release notes changes? Comment present?
[ ]*
Downstream builds green?
[ ]*
Solution information and context easily available?
[ ]*
Tests
[ ]*
FixVersion filled and not yet released
[ ] 
Architecture Decision Record (ADR)
|
| Bug DoR: |
[ ]*
Steps to reproduce, expected, and actual results filled
[ ]*
Affected version filled
|
| Date of First Response: |
| Description |
|
The DTD for XHTML requires that script tags have a closing tag: <script src="test.js" /> is illegal, even if the body content is empty. It must be written as: <script src="test.js"></script> For more information, see Appendix C.3 in the w3 XHTML guidelines for element minimization: http://www.w3.org/TR/xhtml1/#guidelines JSP 2.0 is automatically shortening the script tag, even if it is written as <script></script>, because the body of the script is empty. This causes Internet Explorer to display a blank page. To fix, place an empty <jsp:text></jsp:text> tag in between the script elements. Patch enclosed. |
| Comments |
| Comment by Titus Barik [ 18/Apr/05 ] |
|
This only affects Magnolia 2.1. |
| Comment by Titus Barik [ 18/Apr/05 ] |
|
Patch enclosed. |
| Comment by Fabrizio Giustina [ 25/Apr/05 ] |
|
committed to trunk, thanks |