Function __global->__check_tag

Definitions

sources/webstandards2.php

  • Checks an XHTML tag for conformance, including attributes. Return the results.
  • Is abstract?: No
  • Is static?: No
  • Is final?: No
  • Return: array

Parameters

Name Type Default Set Range Description
$tag string required parameter N/A N/A The name of the tag to check
$attributes array required parameter N/A N/A A map of attributes (name=>value) the tag has
$self_close boolean required parameter N/A N/A Whether this is a self-closing tag
$close boolean required parameter N/A N/A Whether this is a closing tag
$errors array required parameter N/A N/A Errors detected so far. We will add to these and return

Return

  • List of errors
  • Type: array
  • Set: N/A
  • Range: N/A