Opened 17 years ago
Closed 17 years ago
#11569 closed enhancement (fixed)
Media.php validation fix
| Reported by: | Simek | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | 3.0 |
| Component: | Validation | Version: | 2.9 |
| Severity: | minor | Keywords: | has-patch |
| Cc: | Focuses: |
Description (last modified by )
Remove unneeded empty span from the uploader and the Media Library screen.
Attachments (3)
Change History (13)
#2
in reply to: ↑ 1
@
17 years ago
Replying to miqrogroove:
You have right - W3C Validator do not treat it like error but IMO avoiding empty spans is a good habit.
Additional in new patch - missing FORM close tag added.
#3
follow-up:
↓ 5
@
17 years ago
- Milestone 2.9.1
- Resolution → invalid
- Status new → closed
No Bug Description
Simek, you can't just throw patches at the developers and expect them to psychically understand why you want them to make changes. If there is a bug here you need to describe what the problem is, where you found it, and how someone else might find the same problem.
#4
@
17 years ago
- Description modified (diff)
- Keywords reporter-feedback removed
- Milestone → 3.0
- Resolution invalid
- Status closed → reopened
#5
in reply to: ↑ 3
@
17 years ago
Replying to miqrogroove:
No Bug Description
Not everybody's first language is English. I can understand that it's easier to write code than descriptions. In this case the patch is pretty much self-explanatory.
#6
@
17 years ago
- Severity trivial → minor
- Version 2.9 → 2.5
After all the posts by staff complaining about tickets with a lack of information, I thought it would be helpful to close the bare patches. Once again I'm proven wrong and will let you guys fight amongst yourselves.
Here is the description I was working on to reopen the ticket:
If you look at the Upload/Insert buttons for attaching media to a new post, you can copy those links and hit them directly to grab code for validation. An example path looks like /wp-admin/media-upload.php?post_id=-1261613461&type=image&TB_iframe=true
At such URLs there is a full entity returned with (mostly valid) XHTML doctype. However, each entity contains one FORM element that is not closed, and does cause a validation error.
This was probably introduced at http://core.trac.wordpress.org/browser/trunk/wp-admin/includes/media.php?rev=7092
I am not aware of any bug or cosmetic problem caused by the missing close tag.
Enjoy.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
Empty span tags do not cause validation errors. This ticket should be closed invalid unless a proper description is added.