Out of curiosity, what does jQuery do in this case? Does it silently 
fail, die on error because it tried to use a property from a nonexistant 
parent, or output an explicit error slapping the author for using 
something that can't be done?

If it's a silent fail, it might be nice for this edge case to use the 
latter option so that people don't have to guess or hunt through docs 
after forgetting this fact.

~Daniel Friesen (Dantman, Nadir-Seen-Fire) [http://nadir-seen-fire.com]
-Nadir-Point (http://nadir-point.com)
-Wiki-Tools (http://wiki-tools.com)
-MonkeyScript (http://monkeyscript.nadir-point.com)
-Animepedia (http://anime.wikia.com)
-Narutopedia (http://naruto.wikia.com)
-Soul Eater Wiki (http://souleater.wikia.com)



John Resig wrote:
> Yeah, this is really just a documentation issue. Do you want to just
> tweak the docs for those entries and be sure to mention that they
> require that the element(s) are already inserted in to a document or
> another node?
>
> --John
>
>
>
> On Tue, Feb 17, 2009 at 10:59 PM, Dave Methvin <dave.meth...@gmail.com> wrote:
>   
>> The before/after/insertBefore/insertAfter methods require a parentNode
>> so that the content can be inserted relative to the element. So, $
>> ("<p>unusual</p>").after("<p>case</p>") will fail.
>>
>> http://dev.jquery.com/ticket/3940
>>
>> Maybe that should just be documented? There are plenty of other ways
>> to solve the problem.
>>     
>
> >
>   

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"jQuery Development" group.
To post to this group, send email to jquery-dev@googlegroups.com
To unsubscribe from this group, send email to 
jquery-dev+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/jquery-dev?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to