[PETDANCE - Mon May 24 11:48:38 2004]:
Show quoted text> > There is currently no support for XHTML/1.0-Strict, which means
> things
> > like name-based form submission fail. XHTML/1.0 does not allow the
> > 'name' attribute for forms, only 'id'. Are there plans to add
> XHTML/1.0
> > compliance? Lacking it means I cannot use WWW::Mechanize to write
> tests
> > for XHTML/1.0-Strict compliant sites.
>
> I have no plans for it. If someone wants to send me patches, I'm open
> to them.
>
It seems that's just necessary to extend the is_html() check.
Now it just checks for "text/html" (and this could also be wrong,
because some servers tend to append the charset to the Content-Type
HTTP header, e.g. "Content-Type: text/html; charset=utf-8" --- will
this be stripped). XHTML compatible content types are:
* application/xhtml+xml
* application/vnd.wap.xhtml+xml
* text/xhtml
Maybe also the HTML::Parser should also be set to xml_mode(1), but in
my first quick test it worked without this change.
Regards,
Slaven