RFR: 8049347: HTMLDocument throws NPE for Block Tag

Phil Race prr at openjdk.org
Thu Jun 15 22:35:03 UTC 2023


On Wed, 14 Jun 2023 12:43:18 GMT, Prasanta Sadhukhan <psadhukhan at openjdk.org> wrote:

> Trying to iterate for HEAD HTML tag or for any other "Block" Tag results in NPE due to some spurious unhandled code which just return NULL.
> Removing the code solves this problem and also does not cause any regression in clientlibs test.

I'm inclined to agree this looks like unfinished work.
The original author seems to have thought block tags needed to be handled differently.
I don't see any evidence this was never intended to be used by apps any more than much of the rest of the API.

-------------

PR Comment: https://git.openjdk.org/jdk/pull/14466#issuecomment-1593805372



More information about the client-libs-dev mailing list