Changeset 1994

Show
Ignore:
Timestamp:
10/03/06 01:39:14
Author:
miyagawa
Message:

update CAVEATS re css selector validatoin

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • HTML-Selector-XPath/trunk/lib/HTML/Selector/XPath.pm

    r1993 r1994  
    169169=head1 CAVEATS 
    170170 
     171=head2 NOT PSEUDO CLASS 
     172 
    171173This module supports I<:first-child> and I<:lang> pseudo class, and a 
    172174partial support for I<:not> CSS 3 pseudo class as well. When you use 
    173 I<:not>, this module will produce I<:not()> euiqvalent XPath 
    174 expression, which is only available in XPath 2.0 implementation. 
     175I<:not>, this module will produce the equivalent XPath expression 
     176I<:not()>, which is only available in XPath 2.0 implementation. 
    175177 
    176178So far as I have tested, I<:not()> is not available in Perl XPath 
    177179modules like L<XML::LibXML> and L<HTML::Builder::XPath>. 
     180 
     181=head2 CSS SELECTOR VALIDATION 
     182 
     183This module doesn't validate if the original CSS Selector expression 
     184is valid. For example, 
     185 
     186  div.123foo 
     187 
     188is an invalid CSS selector (class names should not begin with 
     189numbers), but this module ignores that and tries to generate 
     190an equivalent XPath expression anyway. 
    178191 
    179192=head1 AUTHOR