Skip Menu |
 
rt.cpan.org will be shut down on March 1st, 2021.

This queue is for tickets about the CGI-Ajax CPAN distribution.

Report information
The Basics
Id: 19768
Status: new
Priority: 0/
Queue: CGI-Ajax

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

Bug Information
Severity: Important
Broken in: 0.695
Fixed in: (no value)



Subject: Problem inserting JavaScript when HEAD has attributes (w/patch)
Download (untitled) / with headers
text/plain 774b
Hi, Thanks for the module! It's very helpful. I have a problem, however, when I create an HTML document that has a <HEAD> element with attributes (e.g., "bgcolor"). This fixes it: diff -c Ajax.orig Ajax.pm *** Ajax.orig Wed Jun 7 13:56:57 2006 --- Ajax.pm Wed Jun 7 13:57:28 2006 *************** *** 956,962 **** } # see if we can match on <head> ! @shtml= $mhtml =~ /(.*)(<\s*head\s*>)(.*)/is; if ( @shtml ) { # yes, there's already a <head></head>, so let's insert inside it, # at the beginning --- 956,962 ---- } # see if we can match on <head> ! @shtml= $mhtml =~ /(.*)(<\s*head.*?>)(.*)/is; if ( @shtml ) { # yes, there's already a <head></head>, so let's insert inside it, # at the beginning ky


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.