check_css
check_js
check_spelling
check_xhtml
fix_entities
is_hex
jlex__strlen_sort
js_add_variable_reference
js_check_assignment
js_check_call
js_check_command
js_check_expression
js_check_function
js_check_variable
js_check_variable_list
js_die_error
js_ensure_type
js_get_variable_type
js_infer_expression_type_to_variable_type
js_log_warning
js_pos_to_line_details
js_scan_extractive_expressions
js_set_composr_type
lex__get_next_char
lex__get_next_chars
parser_expect
parser_next
parser_peek
parser_peek_dist
precedence_sort
reset_js_global_variables
test_entity
webstandards_js_lex
webstandards_js_parse
webstandards_js_parser_error
CSS_AT_RULE
CSS_AT_RULE_BLOCK
CSS_EXPECTING_IDENTIFIER
CSS_EXPECTING_SEP_OR_IDENTIFIER_OR_CLASS
CSS_IN_CLASS
CSS_IN_COMMENT
CSS_IN_IDENTIFIER
CSS_IN_PSEUDOCLASS_EXPRESSION
CSS_NO_MANS_LAND
DOCTYPE_HTML
DOCTYPE_HTML_STRICT
DOCTYPE_XHTML
DOCTYPE_XHTML5
DOCTYPE_XHTML_11
DOCTYPE_XHTML_STRICT
IN_CDATA
IN_COMMENT
IN_DTD_TAG
IN_TAG_ATTRIBUTE_NAME
IN_TAG_ATTRIBUTE_VALUE_BIG_QUOTES
IN_TAG_ATTRIBUTE_VALUE_LITTLE_QUOTES
IN_TAG_ATTRIBUTE_VALUE_NO_QUOTES
IN_TAG_BETWEEN_ATTRIBUTES
IN_TAG_BETWEEN_ATTRIBUTE_NAME_VALUE_LEFT
IN_TAG_BETWEEN_ATTRIBUTE_NAME_VALUE_RIGHT
IN_TAG_EMBEDDED_COMMENT
IN_TAG_NAME
IN_XML_TAG
LEXER_COMMENT
LEXER_DOUBLE_QUOTE_STRING_LITERAL
LEXER_FREE
LEXER_ML_COMMENT
LEXER_NUMERIC_LITERAL
LEXER_REGEXP
LEXER_SINGLE_QUOTE_STRING_LITERAL
NO_MANS_LAND
STARTING_TAG
_CSS_EXPECTING_END
_CSS_IN_COMMENT
_CSS_IN_PROPERTY_BETWEEN
_CSS_IN_PROPERTY_KEY
_CSS_IN_PROPERTY_VALUE
_CSS_NO_MANS_LAND
check_css(string $data) : \?map
| package | core_webstandards |
|---|
stringThe data of the style sheet
\?mapError information (null: no error)check_js(string $data, boolean $raw_errors = false) : array
| package | core_webstandards |
|---|
stringCode
booleanWhether to return raw-errors
arrayStandard checker report outputcheck_spelling(string $value) : \list
check_xhtml(string $out, boolean $well_formed_only= false, boolean $is_fragment= false, boolean $webstandards_javascript= true, boolean $webstandards_css= true, boolean $webstandards_wcag= true, boolean $webstandards_compat= true, boolean $webstandards_ext_files= true, boolean $webstandards_manual= false) : \?map
| package | core_webstandards |
|---|
stringThe XHTML to check
booleanWhether to avoid checking for relational errors (false implies just a quick structural check, aka a 'well formed' check)
booleanWhether what is being checked is an HTML fragment, rather than a whole document
booleanValidate javascript
booleanValidate CSS
booleanValidate WCAG
booleanValidate for compatibility
booleanValidate external files
booleanBring up messages about manual checks
\?mapError information (null: no error)fix_entities(string $in) : string
is_hex(string $string) : boolean
| package | core_webstandards |
|---|
stringThe string to check
booleanWhether the string holds a hexadecimal numberjlex__strlen_sort(string $a, string $b) : integer
| package | core_webstandards |
|---|
stringThe first string to compare
stringThe second string to compare
integerThe comparison resultjs_add_variable_reference(string $identifier, integer $first_mention, boolean $instantiation= true, boolean $reference= false, \?string $function_return= null, boolean $is_call= false)
| package | core_webstandards |
|---|
stringThe variable name
integerWhere the first mention of the variable is
booleanWhether this is an instantiation reference
booleanWhether this is a reference (as opposed to instantiation/setting)
\?stringThe result-type (null: not a function)
booleanWhether this is a function call
js_check_assignment(\list $c, integer $c_pos) : string
| package | core_webstandards |
|---|
\listThe complex assignment details
integerThe position this is at in the parse
stringThe assigned typejs_check_call(\list $c, integer $c_pos, \?string $class = null) : \?string
| package | core_webstandards |
|---|
\listThe (possibly complex) variable that is the function identifier
integerThe position this is at in the parse
\?stringThe class the given variable is in (null: global/as-specified-internally-in-c)
\?stringThe return type (null: nothing returned)js_check_command(\list $command, integer $depth)
| package | core_webstandards |
|---|
\listThe command
integerThe block depth we are searching at
js_check_expression(\list $e, boolean $secondary= false, boolean $is_guarded= false) : string
| package | core_webstandards |
|---|
\listThe complex expression
booleanWhether the expression is being used as a command (i.e. whether the expression is not used for the result, but rather, the secondary consequences of calculating it)
booleanWhether the expression is being guarded and hence is not a proper reference
stringThe typejs_check_function(\map $function)
js_check_variable(\list $variable, boolean $reference= false, boolean $function_duality= false, \?string $class= null, boolean $allow_static= false, boolean $is_call= false) : mixed
| package | core_webstandards |
|---|
\listThe (possibly complex) variable
booleanWhether the variable is being used referentially (i.e. not being set)
booleanWhether to return the type and function-return-type pair, rather than just the type
\?stringThe class the variable is referencing within (null: global)
booleanWhether the given class is being referenced directly in static form
booleanWhether this is for a function call
mixedThe return type and possibly function return type (if requested)js_check_variable_list(\list $JS_LOCAL_VARIABLES)
js_die_error(string $system, integer $pos, string $line, string $message, integer $i) : \?boolean
| package | core_webstandards |
|---|
stringThe system causing the error
integerThe position
stringThe line
stringThe error
integerThe global position
\?booleanAlways NULL (null: exit)js_ensure_type(\list $_allowed_types, string $actual_type, integer $pos, \?string $alt_error = null) : boolean
| package | core_webstandards |
|---|
\listList of allowed types
stringActual type involved
integerCurrent parse position
\?stringSpecific error message to give (null: use default)
booleanWhether it type-checksjs_get_variable_type(\list $variable) : string
js_infer_expression_type_to_variable_type(string $type, \list $expr)
js_log_warning(string $system, string $warning, integer $i= -1, boolean $absolute= false)
| package | core_webstandards |
|---|
stringThe system causing the error
stringThe warning
integerThe global position
booleanWhether the position is a string offset (as opposed to a token position)
js_pos_to_line_details(integer $i, boolean $absolute = false) : \list
| package | core_webstandards |
|---|
integerThe position
booleanWhether the position is a string offset (as opposed to a token position)
\listThe quartet of details (line offset, line number, the line, the absolute position)js_scan_extractive_expressions(\list $variable)
js_set_composr_type(string $identifier, string $type)
lex__get_next_char(integer $i) : \list
| package | core_webstandards |
|---|
integerGet character at this position
\listGet triplet about the next character (whether end reached, new position, character)lex__get_next_chars(integer $i, integer $num) : \list
| package | core_webstandards |
|---|
integerGet character at this position
integerHow many to get
\listGet triplet about the next character (whether end reached, new position, characters)parser_expect(string $token) : \?mixed
| package | core_webstandards |
|---|
stringThe token we want
\?mixedThe token parameters (null: error)parser_next(boolean $all = false) : \?mixed
| package | core_webstandards |
|---|
booleanWhether we want all the token parameters (as opposed to just the first)
\?mixedAll the token parameters, or just the first (null: error)parser_peek(boolean $all = false) : \?mixed
| package | core_webstandards |
|---|
booleanWhether we want all the token parameters (as opposed to just the first)
\?mixedAll the token parameters, or just the first (null: error)parser_peek_dist(integer $d, \?integer $p = null) : \?mixed
| package | core_webstandards |
|---|
integerThe distance
\?integerWhether to start looking from (null: current position in parse)
\?mixedThe first token parameter (null: error)precedence_sort(\list $op_list) : \list
reset_js_global_variables()
| package | core_webstandards |
|---|
test_entity(integer $offset = 0) : \?mixed
| package | core_webstandards |
|---|
integerChecking offset
\?mixedAn array of error details (null: no errors)webstandards_js_lex(string $text) : \list
webstandards_js_parse() : \?map
webstandards_js_parser_error(string $message) : \?boolean
| package | core_webstandards |
|---|
stringThe error
\?booleanAlways NULL (null: exit)CSS_EXPECTING_SEP_OR_IDENTIFIER_OR_CLASS = 2
| package | core_webstandards |
|---|
DOCTYPE_HTML = '<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">'
| package | core_webstandards |
|---|
DOCTYPE_HTML_STRICT = '<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">'
| package | core_webstandards |
|---|
DOCTYPE_XHTML_11 = '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">'
| package | core_webstandards |
|---|
DOCTYPE_XHTML_STRICT = '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">'
| package | core_webstandards |
|---|
IN_TAG_ATTRIBUTE_VALUE_LITTLE_QUOTES = 8
| package | core_webstandards |
|---|
IN_TAG_BETWEEN_ATTRIBUTE_NAME_VALUE_LEFT = 5
| package | core_webstandards |
|---|
IN_TAG_BETWEEN_ATTRIBUTE_NAME_VALUE_RIGHT = 7
| package | core_webstandards |
|---|