Skip Menu |
 

Preferred bug tracker

Please visit the preferred bug tracker to report your issue.

This queue is for tickets about the WWW-Mechanize CPAN distribution.

Report information
The Basics
Id: 6399
Status: rejected
Priority: 0/
Queue: WWW-Mechanize

People
Owner: Nobody in particular
Requestors: sdrabble [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Wishlist
Broken in: (no value)
Fixed in: (no value)



Subject: XHTML support
Download (untitled) / with headers
text/plain 447b
WWW::Mechanize-1.02 This is perl, v5.8.0 built for i586-linux-thread-multi Stock SuSE 8.2 2.4.20-4GB with a couple of patches. 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.
Date: Mon, 24 May 2004 10:48:54 -0500
From: Andy Lester <andy [...] petdance.com>
To: via RT <bug-WWW-Mechanize [...] rt.cpan.org>
CC: undisclosed-recipients: ;
Subject: Re: [cpan #6399] XHTML support
RT-Send-Cc:
Download (untitled) / with headers
text/plain 490b
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. xoa -- Andy Lester => andy@petdance.com => www.petdance.com => AIM:petdance
From: srezic [...] cpan.org
Download (untitled) / with headers
text/plain 1011b
[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
Date: Wed, 12 Oct 2005 13:31:10 -0500
From: Mark Stosberg <mark [...] summersault.com>
To: Slaven_Rezic via RT <bug-WWW-Mechanize [...] rt.cpan.org>
Subject: Re: [cpan #6399] XHTML support
RT-Send-Cc:
Download (untitled) / with headers
text/plain 827b
On Wed, Oct 12, 2005 at 02:16:26PM -0400, Slaven_Rezic via RT wrote: Show quoted text
> > 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.
Slaven, Thanks for the research. This sounds easy enough. Would you willing to donate some automated tests and the actual patch to the project to confirm it works? I agree, XHTML support would be nice to have. Mark


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.