|
2012-11-08
| ||
| 13:47 | • Fixed ticket [5ff2043c96]: Invalid xhtml markup generated (with patch) plus 1 other change ... (artifact: 9311dba7b9 user: drh) | |
| 13:46 | Escape all characters in the href attributes of <a> elements that have special meaning to HTML. Ticket [5ff2043c96682049]. ... (check-in: d5c4684508 user: drh tags: trunk) | |
| 13:44 | Always HTML-encode the href attribute of <a> elements. This check-in simplifies and fixes double-frees in the previous. Ticket [5ff2043c9668] ... (Closed-Leaf check-in: 35bfedef3e user: drh tags: ticket-5ff2043c96) | |
| 10:31 | • Ticket [5ff2043c96] Invalid xhtml markup generated (with patch) status still Open with 1 other change ... (artifact: ac8a9a8273 user: jan.nijtmans) | |
| 09:51 | • Ticket [5ff2043c96]: 1 change ... (artifact: fbb447d061 user: jan.nijtmans) | |
| 09:45 | suggested fix for [5ff2043c96] ... (check-in: d1f16f718a user: jan.nijtmans tags: ticket-5ff2043c96) | |
|
2012-11-06
| ||
| 09:05 | • Ticket [5ff2043c96] Invalid xhtml markup generated (with patch) status still Open with 1 other change ... (artifact: ef022a2d6e user: jan.nijtmans) | |
|
2011-09-10
| ||
| 21:07 | • Closed ticket [be95038383]: Fossil generates invalid markup... plus 2 other changes ... (artifact: e9e27b01ab user: dmitry) | |
|
2011-09-08
| ||
| 23:11 | • Ticket [5ff2043c96] Invalid xhtml markup generated (with patch) status still Open with 2 other changes ... (artifact: 6256674d25 user: dmitry) | |
|
2011-04-22
| ||
| 03:10 | • New ticket [9fbc3fad8a] Fossil should deliver application/xhtml+xml when appropriate (with patch). ... (artifact: f176430649 user: anonymous) | |
| 03:06 | • Add attachment markuppatch.diff.txt to ticket [5ff2043c96] ... (artifact: f8e0efba6c user: anonymous) | |
| 03:05 | • New ticket [5ff2043c96] Invalid xhtml markup generated (with patch). ... (artifact: 8730a3f16e user: anonymous) | |
| Ticket Hash: | 5ff2043c966820498ce41c0dd425b4b2155fa025 | ||
| Title: | Invalid xhtml markup generated (with patch) | ||
| Status: | Fixed | Type: | Code_Defect |
| Severity: | Important | Priority: | |
| Subsystem: | Resolution: | Fixed | |
| Last Modified: |
2012-11-08 13:47:11 13.40 years ago |
Created: |
2011-04-22 03:05:53 14.95 years ago |
| Version Found In: | 2011-04-19 20:30:31 085b6a1bbb | ||
| Description: | ||||
|
While most of the generated fossil output is valid xhtml, there are still several places that aren't.
These include not using & instead of a plain & when generating URLs in href attributes, using <br> and <hr> instead of <br /> and <hr />, using instead of   and finally the occasional <img> instead of <img />. The attached patch corrects these issues so that fossil can return valid application/xhtml+xml content. dmitry added on 2011-09-08 23:11:38 UTC: jan.nijtmans added on 2012-11-06 09:05:14 UTC: Wouldn't it be better to modify style_submenu_element() such that it escapes all &'s to &? Then those (minor) html5 violations are fixed all at once. jan.nijtmans added on 2012-11-08 09:51:47 UTC: I put many pages, such as "timeline" to the validator.w3.org, and it reduced dramatically the number of errors. The current "timeline" page dropped from 85 to only 4 errors. That's better than changing many &'s to &'s in the source code, as this patch does. Changing only the href() and style_submenu_element() functions has much more effect. jan.nijtmans added on 2012-11-08 10:31:49 UTC: Note that xhtml errors can result in real bugs. For
example have a look at the report list:
http://www.fossil-scm.org/fossil/reportlist
When logged in, this page contains links [copy] after each
report. This link works fine on Firefox, but it doesn't work
on Internet Explorer, and this time IE is not to blame ;-)
| ||||
Attachments:
- markuppatch.diff.txt [download] added by anonymous on 2011-04-22 03:06:40. [details]