Opened 21 years ago
Closed 19 years ago
#1432 closed defect (bug) (invalid)
get_archives_link breaks HTML validation
| Reported by: | ManiacSoftwareManiacsOrg | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | Template | Version: | 1.5.1.1 |
| Severity: | normal | Keywords: | bg|2nd-opinion |
| Cc: | Focuses: |
Description
get_archives_link in file wp_includes/template-functions-general.php unconditionally ends link tag with '/>' which breaks page validation for HTML documents.
If it's not very easy to distinguish somehow at this point if the document is going to be served as text/html or application/xhtml+xml then I think some additional value for $format (like 'html_link') should help this.
BTW, it would be nice also to change single quotes to double quotes here just for consistency with every other attribute across pages.
Attachments (1)
Change History (5)
Note:
See TracTickets
for help on using tickets.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
Patch to implement this change, including quotes.