I have found the problem.
The problem was that the HTML I was trying to validate was not contained within a <form>...</form> tag.
As soon as I did that, I had a context that was not null.
I have found the problem.
The problem was that the HTML I was trying to validate was not contained within a <form>...</form> tag.
As soon as I did that, I had a context that was not null.