phpDocumentor pond
[ class tree: pond ] [ index: pond ] [ all elements ]

Class: XHTML_Validator

Source Location: /qp_inc/xhtml_validator/_xhtml_validator.class.php

Class XHTML_Validator

Property Summary
mixed   $allowed_uri_scheme  
mixed   $allow_css_tweaks  
mixed   $allow_iframes  
mixed   $allow_javascript  
mixed   $allow_objects  
mixed   $error  
mixed   $last_checked_pos  
mixed   $parser  
mixed   $stack  
mixed   $tagattrs  
mixed   $tags  
mixed   $uri_attrs  

[ Top ]
Method Summary
XHTML_Validator   XHTML_Validator()   Constructor
void   cdata()   cdata(-)
void   check()   check(-)
void   html_error()   dummy docblock makes error-free autodocs
void   isOK()   isOK(-)
void   pi_handler()   Called when the parser finds a processing instruction.
void   tag_close()   tag_close(-)
void   tag_open()   tag_open(-)

[ Top ]
Properties
mixed   $allowed_uri_scheme [line 51]

[ Top ]
mixed   $allow_css_tweaks [line 59]

[ Top ]
mixed   $allow_iframes [line 60]

[ Top ]
mixed   $allow_javascript [line 61]

[ Top ]
mixed   $allow_objects [line 62]

[ Top ]
mixed   $error [line 57]

[ Top ]
mixed   $last_checked_pos [line 56]

[ Top ]
mixed   $parser [line 54]

[ Top ]
mixed   $stack = array() [line 55]

[ Top ]
mixed   $tagattrs [line 49]

[ Top ]
mixed   $tags [line 48]

[ Top ]
mixed   $uri_attrs [line 50]

[ Top ]
Methods
Constructor XHTML_Validator  [line 77]

  XHTML_Validator XHTML_Validator( [string $context = 'posting'], [boolean $allow_css_tweaks = false], [boolean $allow_iframes = false], [boolean $allow_javascript = false], [boolean $allow_objects = false], [string $encoding = NULL], [string $msg_type = 'error']  )

Constructor

Parameters:
string   $context:  Context: "posting", "xmlrpc_posting" or "commenting"
boolean   $allow_css_tweaks:  Allow the "style" attribute to be used?
boolean   $allow_iframes:  Allow using the <iframe> tag?
boolean   $allow_javascript:  Allow using the <script> and <noscript> tags?
boolean   $allow_objects:  Allow using the <object> and <embed> tags?
string   $encoding:  Input encoding to use ('ISO-8859-1', 'UTF-8', 'US-ASCII' or ''/NULL for auto-detect)
string   $msg_type:  Message category for error messages


[ Top ]
cdata  [line 311]

  void cdata( $parser, $cdata  )

cdata(-)

Parameters:
   $parser: 
   $cdata: 


[ Top ]
check  [line 163]

  void check( $xhtml  )

check(-)

Parameters:
   $xhtml: 


[ Top ]
html_error  [line 370]

  void html_error( $string  )

dummy docblock makes error-free autodocs

Parameters:
   $string: 


[ Top ]
isOK  [line 380]

  void isOK( )

isOK(-)



[ Top ]
pi_handler  [line 344]

  void pi_handler( $parser, $target, $data  )

Called when the parser finds a processing instruction.

We try to check the contents of the instruction for safe XHTML.

Parameters:
   $parser: 
   $target: 
   $data: 


[ Top ]
tag_close  [line 331]

  void tag_close( $parser, $tag  )

tag_close(-)

Parameters:
   $parser: 
   $tag: 


[ Top ]
tag_open  [line 251]

  void tag_open( $parser, $tag, $attrs  )

tag_open(-)

Called when the parser finds an opening tag

Parameters:
   $parser: 
   $tag: 
   $attrs: 


[ Top ]