High school problem, no advanced tehniques please.
How to calculate $$\lim_{x\to 0}\Big({1+\tan x \over 1+\sin x}\Big)^{1\over \sin x}$$
With $t=\sin x $ we get $$\lim_{t\to 0}\Big({1+\frac{t}{\sqrt{1-t^2}} \over 1+t}\Big)^{1\over t}= \lim_{t\to 0}\Big({\sqrt{1-t^2}+t\over \sqrt{1-t^2}(1+t)}\Big)^{1\over t}$$ and this is all I can do. It resembles $\lim_{x\to 0}(1+x)^{1\over x} =e$ but... So, how to solve it?
By taking cases $x\leq 0$ and $x\geq 0$ we obtain the limits
$$|\tan x| \geq |\sin x| \implies \left(\frac{1+\tan x}{1+\sin x}\right)^{\frac{1}{\sin x}} \geq 1$$
and
$$\begin{cases}\sec x + \tan x \geq 1 + \tan x \\ \cos x + \tan x \leq 1 + \tan x\end{cases}\implies\left(\frac{1+\tan x}{1+\sin x}\right)^{\frac{1}{\sin x}} \leq \left(\sec x\right)^{\frac{1}{|\sin x|}} $$
which means with your substitution we have
$$\lim_{t\to0}1 \leq L \leq \lim_{t\to0}\left(1-t^2\right)^{-\frac{1}{2|t|}}$$
The limit on the left is $1$ and the limit on the right is
$$\lim_{t\to0}\left(1-t^2\right)^{-\frac{|t|}{2t^2}}=\lim_{t\to0}\left(\left(1-t^2\right)^{\frac{1}{t^2}}\right)^{-\frac{|t|}{2}} = \left(e^{-1}\right)^0 = 1$$
Thus the limit we want is $\boxed{1}$ by squeeze theorem.