POE::Component::IRC::Plugin::HTML::AttributeInfo is a Perl module, a POE::Component::IRC plugin which uses POE::Component::IRC::Plugin for its base.
It provides interface to to lookup information regarding HTML element attributes. It accepts input from public channel events, /notice messages as well as /msg (private messages); although that can be configured at will.
SYNOPSIS
use strict;
use warnings;
use POE qw(Component::IRC Component::IRC::Plugin::HTML::AttributeInfo);
my $irc = POE::Component::IRC- >spawn(
nick = > 'HTMLAttrBot',
server = > '127.0.0.1',
port = > 6667,
ircname = > 'HTML Attributes Lookup Bot',
plugin_debug = > 1,
);
POE::Session- >create(
package_states = > [
main = > [ qw(_start irc_001) ],
],
);
$poe_kernel- >run;
sub _start {
$irc- >yield( register = > 'all' );
$irc- >plugin_add(
'HTMLAttributeInfo' = >
POE::Component::IRC::Plugin::HTML::AttributeInfo- >new
);
$irc- >yield( connect = > {} );
}
sub irc_001 {
$irc- >yield( join = > '#zofbot' );
}
< Zoffix > HTMLAttrBot, attr list attributes table
< HTMLAttrBot > Element TABLE has the following attributes: align,
bgcolor, border, cellpadding, cellspacing, class, dir,
frame, id, lang, onclick, ondblclick, onkeydown,
onkeypress, onkeyup, onmousedown, onmousemove,
onmouseout, onmouseover, onmouseup, rules, style,
summary, title, width
< Zoffix > HTMLAttrBot, attr list elements cellspacing
< HTMLAttrBot > Attribute cellspacing applies to elements: TABLE
< Zoffix > HTMLAttrBot, attr type class
< HTMLAttrBot > Attribute class's value is of type: CDATA
< Zoffix > HTMLAttrBot, attr default width
< HTMLAttrBot > Attribute width's default values are: #IMPLIED [ HR,
IFRAME, IMG, OBJECT, TABLE, TD, TH, COL, COLGROUP, PRE ];
#REQUIRED [ APPLET ]
< Zoffix > HTMLAttrBot, attr deprecated width
< HTMLAttrBot > Attribute width is deprecated on element(s): APPLET, HR,
PRE, TD, TH and NOT deprecated on element(s): COL,
COLGROUP, IFRAME, IMG, OBJECT, TABLE
< Zoffix > HTMLAttrBot, attr dtd style
< HTMLAttrBot > Attribute style appears in DTD: HTML 4.01 Strict
< Zoffix > HTMLAttrBot, attr comment style
< HTMLAttrBot > Comment for style is: associated style info
< Zoffix > HTMLAttrBot, attr comment name
< HTMLAttrBot > Attribute name has the following comments: N/A: [ BUTTON,
TEXTAREA ]; allows applets to find each other: [ APPLET
]; field name: [ SELECT ]; for reference by usemap: [ MAP
]; metainformation name: [ META ]; name of form for
scripting: [ FORM ]; name of frame for targetting: [
FRAME, IFRAME ]; name of image for scripting: [ IMG ];
named link end: [
< HTMLAttrBot > A ]; property name: [ PARAM ]; submit as part of form: [
INPUT, OBJECT ]
< Zoffix > HTMLAttrBot, attr total
< HTMLAttrBot > I know of 119 attributes in total
< Zoffix > HTMLAttrBot, attr blah
< HTMLAttrBot > Invalid command in HTML Attributes plugin
Product's homepage
Requirements:
· Perl