Assume that:
(1) $A \subsetneq B$ are integral domains and finitely generated algebras over a field $k$ ($k$ is algebraically closed of characteristic zero, if this helps).
(2) $A$ is algebraically closed in $B$.
(3) The field of fractions of $A$, $Q(A)$, has transcendence degree over $k$ one less than the transcendence degree of $Q(B)$ over $k$, that is, $\dim A=\dim B-1$.
My question: Is it true that $Q(A)$ is algebraically closed in $Q(B)$? If not, it would be nice to have a counterexample. (If I am not wrong, $k[x] \subsetneq k[x,y]$ is an example to my question; just use Exercise 1.3.)
I would appreciate any help in solving my question.
Edit: Perhaps Exercise 1.4 is a counterexample to my question; I am not sure if it satisfies my assumption (3) or not.