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::Error(3) User Contributed Perl Documentation HTML::Lint::Error(3)

HTML::Lint::Error - Error object for the Lint functionality

See HTML::Lint for all the gory details.

None. It's all object-based.

Almost everything is an accessor.

Each error has a type. Note that these roughly, but not exactly, go from most severe to least severe.
  • "STRUCTURE"

    For problems that relate to the structural validity of the code. Examples: Unclosed <TABLE> tags, incorrect values for attributes, and repeated attributes.

  • "HELPER"

    Helpers are notes that will help you with your HTML, or that will help the browser render the code better or faster. Example: Missing HEIGHT and WIDTH attributes in an IMG tag.

  • "FLUFF"

    Fluff is for items that don't hurt your page, but don't help it either. This is usually something like an unknown attribute on a tag.

Create an object. It's not very exciting.

Tells if any of $type1, $type2... match the error's type. Returns the type that matched.

    if ( $err->is_type( HTML::Lint::Error::STRUCTURE ) ) {....

Returns a formatted string that describes where in the file the error has occurred.

For example,

    (14:23)

for line 14, column 23.

The terrible thing about this function is that it's both a plain ol' formatting function as in

    my $str = where( 14, 23 );

AND it's an object method, as in:

    my $str = $error->where();

I don't know what I was thinking when I set it up this way, but it's bad practice.

Returns a nicely-formatted string for printing out to stdout or some similar user thing.

Returns the filename of the error, as set by the caller.

Returns the line number of the error.

Returns the column number, starting from 0

Returns the HTML::Lint error code. Don't rely on this, because it will probably go away.

Descriptive text of the error

Type of the error

Each possible error in HTML::Lint has a code. These codes are used to identify each error for when you need to turn off error checking for a specific error.

You called the "errors()" method before calling "parse()" and "eof()".

You called the "errors()" method before calling "eof()".

Unknown directive "DIRECTIVE"

You specified a directive in a comment for HTML::Lint that it didn't recognize.

Unknown value "VALUE" for DIRECTIVE directive

Directive values can only be "on", "off", "yes", "no", "true", "false", "0" and "1".

HTML::Lint doesn't know recognize the tag.

"</tag>" with no opening "<tag>".

"<tag>" at WHERE is never closed.

"<tag>" is not a container -- "</tag>" is not allowed.

"<img src="FILENAME.PNG">" does not have ALT text defined.

"<img src="FILENAME.PNG">" tag has no HEIGHT and WIDTH attributes.

"<tag>" is not repeatable, but already appeared at WHERE.

"<tag>" tag is required.

ATTR attribute in "<tag>" is repeated.

Unknown attribute "ATTR" for tag "<tag>".

Entity ENTITY is missing its closing semicolon

Entity ENTITY is unknown

Character "CHAR" should be written as ENTITY

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.

Andy Lester, "andy at petdance.com"
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.