Bug in a HTML parser?

Hello,

I've just found out why HTML files are not correctly shown with
wxHtmlWindow (talking about text encoding). HTML file with this header
is shown correctly:

   <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-13">

And with this one characters are incorrect:

   <meta http-equiv="Content-type" content="text/html; charset=iso-8859-13">

The difference is "Content-Type" and "Content-type". Is HTML parser case
sensitive? I think it musn't be at this point. What do you think about this
one?

Martynas Jocius

···

--
There is more vision than meets the eye.
http://mjoc.sig.lt

Martynas Jocius wrote:

Hello,

I've just found out why HTML files are not correctly shown with
wxHtmlWindow (talking about text encoding). HTML file with this header
is shown correctly:

   <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-13">

And with this one characters are incorrect:

   <meta http-equiv="Content-type" content="text/html; charset=iso-8859-13">

The difference is "Content-Type" and "Content-type". Is HTML parser case
sensitive? I think it musn't be at this point. What do you think about this
one?

Vaclav,

Would changing wxMetaTagHandler::HandleTag to use the following instead of the operator == be the right place to fix this?

    tag.GetParam(_T("HTTP-EQUIV")).IsSameAs(_T("Content-Type"), FALSE)

···

--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!