/Applications/MAMP/htdocs/quail/trunk/quail/common/css.php File Reference

Go to the source code of this file.

Classes

class  quailCSS


Detailed Description

QUAIL - QUAIL Accessibility Information Library Copyright (C) 2009 Kevin Miller

This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>.

Author:
Kevin Miller <kemiller@csumb.edu>
This class first parses all the CSS in the document and prepares an index of CSS styles to be used by accessibility tests to determine color and positioning.

First, in loadCSS we get all the inline and linked style sheet information and merge it into a large CSS file string.

Second, in setStyles we use XPath queries to find all the DOM elements which are effected by CSS styles and then build up an index in style_index of all the CSS styles keyed by an attriute we attach to all DOM objects to lookup the style quickly.

Most of the second step is to get around the problem where XPath DOMNodeList objects are only marginally referential to the original elements and cannot be altered directly.

Definition in file css.php.


Generated on Sat Aug 21 08:55:07 2010 for QUAIL Accessibility Information library by  doxygen 1.5.7.1