"Greg White" <[EMAIL PROTECTED]> writes:

> The version of LinkExtor I am using does not check for javascript references
> I was able to make my own version which does what I want by adding a
> 
> script -> src
> 
> entry to the initialization module of LINK_ELEMENT (thanks to whoever wrote
> this as open source).  It would be nice if there as a way for me to pass
> in my own entries to the existing library so I did not have to create my
> own version.

There should not be any problems with adding extra entries directly to
the %HTML::LinkExtor::LINK_ELEMENT if you wish.  The hash is not part
of the documented module interface, but I made it a plain global
(instead of a lexical) on purpose so that you can access it from
outside.

    use HTML::LinkExtor;
    $HTML::LinkExtor::LINK_ELEMENT{script} = "src";

    my $p = HTML::LinkExtor->new(....);

FYI "script => src" has already been added to the most recent version
(found in HTML-Parser-3.05).

Regards,
Gisle

Reply via email to