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 |
---|
string
The data of the style sheet
\?map
Error information (null: no error)check_js(string $data, boolean $raw_errors = false
) : array
package | core_webstandards |
---|
string
Code
boolean
Whether to return raw-errors
array
Standard 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 |
---|
string
The XHTML to check
boolean
Whether to avoid checking for relational errors (false implies just a quick structural check, aka a 'well formed' check)
boolean
Whether what is being checked is an HTML fragment, rather than a whole document
boolean
Validate javascript
boolean
Validate CSS
boolean
Validate WCAG
boolean
Validate for compatibility
boolean
Validate external files
boolean
Bring up messages about manual checks
\?map
Error information (null: no error)fix_entities(string $in) : string
is_hex(string $string) : boolean
package | core_webstandards |
---|
string
The string to check
boolean
Whether the string holds a hexadecimal numberjlex__strlen_sort(string $a, string $b) : integer
package | core_webstandards |
---|
string
The first string to compare
string
The second string to compare
integer
The 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 |
---|
string
The variable name
integer
Where the first mention of the variable is
boolean
Whether this is an instantiation reference
boolean
Whether this is a reference (as opposed to instantiation/setting)
\?string
The result-type (null: not a function)
boolean
Whether this is a function call
js_check_assignment(\list $c, integer $c_pos) : string
package | core_webstandards |
---|
\list
The complex assignment details
integer
The position this is at in the parse
string
The assigned typejs_check_call(\list $c, integer $c_pos, \?string $class = null
) : \?string
package | core_webstandards |
---|
\list
The (possibly complex) variable that is the function identifier
integer
The position this is at in the parse
\?string
The class the given variable is in (null: global/as-specified-internally-in-c)
\?string
The return type (null: nothing returned)js_check_command(\list $command, integer $depth)
package | core_webstandards |
---|
\list
The command
integer
The block depth we are searching at
js_check_expression(\list $e, boolean $secondary= false
, boolean $is_guarded= false
) : string
package | core_webstandards |
---|
\list
The complex expression
boolean
Whether 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)
boolean
Whether the expression is being guarded and hence is not a proper reference
string
The 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 |
---|
\list
The (possibly complex) variable
boolean
Whether the variable is being used referentially (i.e. not being set)
boolean
Whether to return the type and function-return-type pair, rather than just the type
\?string
The class the variable is referencing within (null: global)
boolean
Whether the given class is being referenced directly in static form
boolean
Whether this is for a function call
mixed
The 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 |
---|
string
The system causing the error
integer
The position
string
The line
string
The error
integer
The global position
\?boolean
Always NULL (null: exit)js_ensure_type(\list $_allowed_types, string $actual_type, integer $pos, \?string $alt_error = null
) : boolean
package | core_webstandards |
---|
\list
List of allowed types
string
Actual type involved
integer
Current parse position
\?string
Specific error message to give (null: use default)
boolean
Whether 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 |
---|
string
The system causing the error
string
The warning
integer
The global position
boolean
Whether 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 |
---|
integer
The position
boolean
Whether the position is a string offset (as opposed to a token position)
\list
The 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 |
---|
integer
Get character at this position
\list
Get triplet about the next character (whether end reached, new position, character)lex__get_next_chars(integer $i, integer $num) : \list
package | core_webstandards |
---|
integer
Get character at this position
integer
How many to get
\list
Get triplet about the next character (whether end reached, new position, characters)parser_expect(string $token) : \?mixed
package | core_webstandards |
---|
string
The token we want
\?mixed
The token parameters (null: error)parser_next(boolean $all = false
) : \?mixed
package | core_webstandards |
---|
boolean
Whether we want all the token parameters (as opposed to just the first)
\?mixed
All the token parameters, or just the first (null: error)parser_peek(boolean $all = false
) : \?mixed
package | core_webstandards |
---|
boolean
Whether we want all the token parameters (as opposed to just the first)
\?mixed
All the token parameters, or just the first (null: error)parser_peek_dist(integer $d, \?integer $p = null
) : \?mixed
package | core_webstandards |
---|
integer
The distance
\?integer
Whether to start looking from (null: current position in parse)
\?mixed
The 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 |
---|
integer
Checking offset
\?mixed
An 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 |
---|
string
The error
\?boolean
Always 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 |
---|