Make WordPress Core

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 azaozz)

Remove unneeded empty span from the uploader and the Media Library screen.

Attachments (3)

media.php.validation.fix.patch (1.2 KB ) - added by Simek 17 years ago.
media.php.validation.fix.v2.patch (2.6 KB ) - added by Simek 17 years ago.
additional validation fix - missing FORM close tag added
11569.patch (1.4 KB ) - added by hakre 17 years ago.

Download all attachments as: .zip

Change History (13)

#1 follow-up: @miqrogroove
17 years ago

  • Keywords reporter-feedback added; has-patch tested removed

Empty span tags do not cause validation errors. This ticket should be closed invalid unless a proper description is added.

@Simek
17 years ago

additional validation fix - missing FORM close tag added

#2 in reply to: ↑ 1 @Simek
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: @miqrogroove
17 years ago

  • Milestone 2.9.1
  • Resolutioninvalid
  • Status newclosed

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 @azaozz
17 years ago

  • Description modified (diff)
  • Keywords reporter-feedback removed
  • Milestone3.0
  • Resolution invalid
  • Status closedreopened

#5 in reply to: ↑ 3 @azaozz
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 @miqrogroove
17 years ago

  • Severity trivialminor
  • Version 2.92.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.

#7 @hakre
17 years ago

  • Keywords has-patch added

Patch did not apply clean any longer. I updated it to relfect the two named changes, ignored the whitespace changes.

@hakre
17 years ago

#8 @hakre
17 years ago

  • Priority lownormal

#9 @hakre
17 years ago

  • Version 2.52.9

#10 @azaozz
17 years ago

  • Resolutionfixed
  • Status reopenedclosed

(In [12582]) Remove unneeded empty span and add form closing tag in media.php, props Simek and hakre, fixes #11569

Note: See TracTickets for help on using tickets.