[wp-trac] [WordPress Trac] #42010: Native image widget target attribute issue

WordPress Trac noreply at wordpress.org
Wed Sep 27 16:51:20 UTC 2017


#42010: Native image widget target attribute issue
--------------------------+------------------------------
 Reporter:  jordanwebdev  |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  Widgets       |     Version:  4.8.2
 Severity:  normal        |  Resolution:
 Keywords:                |     Focuses:  accessibility
--------------------------+------------------------------

Comment (by jordanwebdev):

 I meant to say that the empty target attribute gets added to the link tag
 that gets generated when the image is selected to link somewhere, not the
 img element itself. In my specific case, I've chosen the Custom URL
 option.

 Replying to [ticket:42010 jordanwebdev]:
 > The newly introduced image widget automatically adds an empty target
 attribute to the img element that it generates. However, this causes a
 validation error on https://validator.w3.org. The attribute should not be
 automatically added, unless specified to do so.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/42010#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list