[Htmlparser-user] Base tag problem
Brought to you by:
derrickoswald
From: Marcin P. <mar...@so...> - 2002-12-02 13:24:12
|
Hi When I was parsing pages from google.com directory I found a problem: Inside a document there is such line: <base target="_top"> but HtmlBaseHREFScanner assumes that there is HREF paramater: (Line 68) HTMLBaseHREFScanner.java) String baseUrl = (String)tag.getParameter("HREF"); String absoluteBaseUrl = removeLastSlash(baseUrl.trim()); so I got null pointer exception (of course it is very easy to fix it) Is that line from google malformed HTML or it is a bug in parser? |