#1289: Allow FPF to use "child" as a location for the markup
----------------------------------+-----------------------------------------
 Reporter:  m...@…                |        Owner:  david  
     Type:  defect                |       Status:  closed 
 Priority:  normal                |    Milestone:  1.0.4  
Component:  filter                |      Version:  1.0.3  
 Severity:  normal                |   Resolution:  invalid
 Keywords:                        |    Has_patch:  0      
----------------------------------+-----------------------------------------
Changes (by david):

  * status:  new => closed
  * resolution:  => invalid


Comment:

 You misunderstood the purpose and the code. The last branch is the correct
 implementation of "child". It inserts the error element as a child of the
 target found by the XPath expression. The others insert elements as
 previous or next siblings of the element and thus need to utilize
 {{{parentNode}}}, as that has the necessary {{{insertBefore()}}} and
 {{{appendChild()}}} methods.

-- 
Ticket URL: <http://trac.agavi.org/ticket/1289#comment:1>
Agavi <http://www.agavi.org/>
An MVC Framework for PHP5



_______________________________________________
Agavi Tickets Mailing List
[email protected]
http://lists.agavi.org/mailman/listinfo/tickets

Reply via email to