[Bug 18985] Two bugs in HTML-kit