#45 enhancement

Improvement(?) to API Docs: Element#insert

Reported by Perthius | March 11th, 2009 @ 10:27 AM


  1. The documentation of this function doesn't give the possible values for the position argument. I had to go to the documentation for the deprecated Insertion class to find these.

  2. It says "If the second argument is the content itself, insert will append it to element." This isn't true, unless I misunderstand the meaning of append. The position argument defaults to bottom, not after, so content will be inserted before the end tag of element.

I attempted to rewrite this page using the markdown syntax but I can't tell exactly how you've done it with the coloured code boxes and things like that. If you could send me the markdown code for this page I will be able to rewrite this page and others if I think I can improve them. I've attached my attempt anyway.

Cheers, Perthius.

Comments and changes to this ticket

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

Shared Ticket Bins