[MGNLSTK-945] News & events pages has an img tag that is not closed Created: 26/Apr/12 Updated: 27/Mar/13 Resolved: 27/Mar/13 |
|
| Status: | Closed |
| Project: | Magnolia Standard Templating Kit (closed) |
| Component/s: | demoproject |
| Affects Version/s: | 1.4.6 |
| Fix Version/s: | 1.4.9 |
| Type: | Bug | Priority: | Major |
| Reporter: | Teresa Miyar | Assignee: | Milan Divilek |
| Resolution: | Workaround exists | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||
| Template: |
|
||||
| Acceptance criteria: |
Empty
|
||||
| Date of First Response: | |||||
| Description |
|
<a href="/webapp/demo-project/news-and-events/news-overview/news01.html"><img src="/webapp/.imaging/stk/demo-project/teaser-list/dms/demo-project/img/opener/wooden-table-and-chairs-from-above/document/wooden table and chairs from above 588x368.jpg" alt="Annual Report Presented" ></a> |
| Comments |
| Comment by Samuel Schmitt [ 07/May/12 ] |
|
It an issue of HTML vs XHTML, browsers handle it differently.. I changed the property /server/MIMEMapping/html/mime-type with application/xhtml+xml and then i have a closing slash for the images (on FF). |
| Comment by Samuel Schmitt [ 07/May/12 ] |
|
But after changing the mime type I got this error in adminCentral :S XML Parsing Error: not well-formed Location: http://localhost:8080/euronics-webapp/.magnolia/pages/adminCentral.html Line Number 92, Column 29: if (opener && opener.MgnlAdminCentral && opener.MgnlAdminCentral.onOpenedInNewWindow) { ----------------------------^ So maybe it's not a solution to change the mime-type !! |
| Comment by Milan Divilek [ 27/Mar/13 ] |
|
Not closed image tag meets doctype specification for html. For workaround you can switch to html from xhtml in main template (Templating kit-Templates-templating-kit/templates/main.ftl). Also this not an issue for 4.5 and higher where doctype is set to html5. |