check_css (line 2540)
Checks a CSS style sheet (high level).
?map
check_css
(string $data)
-
string
$data: The data of the style sheet
init__validation2 (line 26)
Standard code module initialisation function.
void
init__validation2
()
validate_spelling (line 2305)
Checks the spelling of some text.
list
validate_spelling
(string $value)
_check_attributes (line 2208)
Checks a tag's attributes.
?list
_check_attributes
(string $tag, map $attributes, boolean $self_close, boolean $close)
-
string
$tag: The name of the tag to check
-
map
$attributes: A map of attributes (name=>value) the tag has
-
boolean
$self_close: Whether this is a self-closing tag
-
boolean
$close: Whether this is a closing tag
_check_blockyness (line 2164)
Checks a tag's inline/block/normal nesting situations.
?list
_check_blockyness
(string $tag, map $attributes, boolean $self_close, boolean $close)
-
string
$tag: The name of the tag to check
-
map
$attributes: A map of attributes (name=>value) the tag has
-
boolean
$self_close: Whether this is a self-closing tag
-
boolean
$close: Whether this is a closing tag
_check_css_value (line 3042)
Checks a CSS attribute/value combination is appropriate.
?map
_check_css_value
(string $key, string $value, integer $_i)
-
string
$key: The name of the attribute
-
string
$value: The value of the attribute
-
integer
$_i: Current parse position
_check_externals (line 2342)
Checks the content under a tag's external references.
?list
_check_externals
(string $tag, map $attributes, boolean $self_close, boolean $close)
-
string
$tag: The name of the tag to check
-
map
$attributes: A map of attributes (name=>value) the tag has
-
boolean
$self_close: Whether this is a self-closing tag
-
boolean
$close: Whether this is a closing tag
_check_labelling (line 2486)
Checks form field labelling.
?list
_check_labelling
(string $tag, map $attributes, boolean $self_close, boolean $close)
-
string
$tag: The name of the tag to check
-
map
$attributes: A map of attributes (name=>value) the tag has
-
boolean
$self_close: Whether this is a self-closing tag
-
boolean
$close: Whether this is a closing tag
_check_link_accessibility (line 2425)
Checks link accessibility.
?list
_check_link_accessibility
(string $tag, map $attributes, boolean $self_close, boolean $close)
-
string
$tag: The name of the tag to check
-
map
$attributes: A map of attributes (name=>value) the tag has
-
boolean
$self_close: Whether this is a self-closing tag
-
boolean
$close: Whether this is a closing tag
_validate_css_class (line 2905)
Checks a CSS class.
?map
_validate_css_class
(string $data, integer $_i, [integer $line = 0])
-
string
$data: The data of the CSS class
-
integer
$_i: Current parse position
-
integer
$line: The higher-level line number we are checking for (to give better debug output)
_validate_css_sheet (line 2564)
Checks a CSS style sheet.
?map
_validate_css_sheet
(string $data)
-
string
$data: The data of the style sheet
__check_tag (line 1810)
Checks an XHTML tag for validity, including attributes. Return the results.
array
__check_tag
(string $tag, map $attributes, boolean $self_close, boolean $close, list $errors)
-
string
$tag: The name of the tag to check
-
map
$attributes: A map of attributes (name=>value) the tag has
-
boolean
$self_close: Whether this is a self-closing tag
-
boolean
$close: Whether this is a closing tag
-
list
$errors: Errors detected so far. We will add to these and return