[wp-trac] [WordPress Trac] #37004: Html5 / W3C Validation

WordPress Trac noreply at wordpress.org
Mon May 8 11:01:37 UTC 2017


#37004: Html5 / W3C Validation
-------------------------------------------------+-------------------------
 Reporter:  arena                                |       Owner:  mihai2u
     Type:  defect (bug)                         |      Status:  assigned
 Priority:  low                                  |   Milestone:  4.8
Component:  Administration                       |     Version:
 Severity:  trivial                              |  Resolution:
 Keywords:  good-first-bug has-screenshots has-  |     Focuses:
  patch                                          |  administration
-------------------------------------------------+-------------------------

Comment (by afercia):

 > The JS does not require the attribute to be present

 Actually the `colSpanChange()` function accepts a parameter which is the
 number to add to the colspan attribute, if present. It does check for the
 presence of a colspan attribute in the markup:

 {{{
 colSpanChange : function(diff) {
         var $t = $('table').find('.colspanchange'), n;
         if ( !$t.length )
                 return;
         n = parseInt( $t.attr('colspan'), 10 ) + diff; <-- check for the
 table colspan attribute and adds the passed param
         $t.attr('colspan', n.toString()); <-- finally, updates the colspan
 attribute with the new value
 }
 }}}

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


More information about the wp-trac mailing list