Quote:
Originally Posted by clintiepoo
These tags are in order, so the previous sibling thing gets a little more confusing.
|
I'm not sure what you mean by the "tags are in order." Keeping tags causes them to be rearranged at the output by the order you keep them. preprocess_html works on the input.
Quote:
I was trying to insert the fn, then the image. The fn tag works, but the image gets lost.
|
Just put some print statements in to find out what the right order is. Put one in before you do your insert and then one after to check that it was inserted where you wanted. I suspect span isn't the prevoius sibling. You need to find out what it is.