In a file foo.html containing
and in html-mode with point on the "foo", calling `sgml-lexical-context'
returns
(tag . 1)
where I thought from the docstring of that function it would be
(comment . 1)
I suppose parse-partial-sexp doesn't quite recognise