GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
HTML::Lint::HTML4(3) User Contributed Perl Documentation HTML::Lint::HTML4(3)

HTML::Lint::HTML4 -- Rules for HTML 4 as used by HTML::Lint.

Collection of tags and attributes for use by HTML::Lint. You can add your own tags and attributes if you like.

    # Add an attribute that your company uses.
    HTML::Lint::HTML4::add_attribute( 'body', 'proprietary-attribute' );

    # Add the HTML 5 <canvas> tag.
    HTML::Lint::HTML4::add_tag( 'canvas' );
    HTML::Lint::HTML4::add_attribute( 'canvas', $_ ) for qw( height width );

This must be done before HTML::Lint does any validation. Note also that this modifies a global table, and is not on a per-object basis.

The functions below are very specifically not exported, and need to be called with a complete package reference, so as to remind the programmer that she is monkeying with the entire package.

Adds a tag to the list of tags that HTML::Lint knows about. If you specify a tag that HTML::Lint already knows about, then nothing is changed.

    HTML::Lint::HTML4::add_tag( 'canvas' );

Adds an attribute to a tag that HTML::Lint knows about. The tag must already be known to HTML::Lint or else this function will die.

    HTML::Lint::HTML4::add_attribute( 'canvas', $_ ) for qw( height width );

Andy Lester "andy at petdance.com"

Copyright 2005-2018 Andy Lester.

This program is free software; you can redistribute it and/or modify it under the terms of the Artistic License v2.0.

http://www.opensource.org/licenses/Artistic-2.0

Please note that these modules are not products of or supported by the employers of the various contributors to the code.

2018-01-08 perl v5.32.1

Search for    or go to Top of page |  Section 3 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.