[wp-trac] Re: [WordPress Trac] #9301: no classes on div-coment in Walker_Comment::start_el()

WordPress Trac wp-trac at lists.automattic.com
Mon Mar 9 13:26:45 GMT 2009


#9301: no classes on div-coment in Walker_Comment::start_el()
--------------------------+-------------------------------------------------
 Reporter:  docwhat       |       Owner:  anonymous 
     Type:  defect (bug)  |      Status:  new       
 Priority:  normal        |   Milestone:  Unassigned
Component:  General       |     Version:            
 Severity:  normal        |    Keywords:  has-patch 
--------------------------+-------------------------------------------------

Comment(by docwhat):

 It would have before we added the "Reply" and nested comments.  But now
 the markup can change, on the fly, from (this is from memory, so the
 classes might be wrong):

 {{{
 <li class="comment">
   <div id="div-comment-NN" />
 </li>
 }}}

 to

 {{{
 <li class="comment">
   <div id="div-comment-NN" />
   <div id="response" />
 </li>
 }}}

 So you can't use a rule like:
 {{{
 #!css
 .comment > div { ... style the body of the comment ... }
 }}}
 ... without getting the reply box, too.

 Before this change, I'd just use css like this:
 {{{
 #!css
 .comment { border: 1px solid blue; }
 }}}

 But the box will bound the replies too; which isn't what I wanted.

 Ciao!

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/9301#comment:4>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list