just want to check:

javascript used to set (not read) a cookie whose path is more specific (e.g. '/test') than the document's path which is doing the setting (e.g. from an html file in the html root directory) will work fine?

it worked fine (that is the cookie was successfully set) in two browsers i just checked it in, an old safari and an old firefox.

so can i expect this to work in all browsers (those which have both js and cookie capabilities both turned on)? or are there some that will not allow this?