<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body><p><anchor-end xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:anchor="1" xmlns:a0="urn:x-suika-fam-cx:markup:suikawiki:0:9:">[1]</anchor-end> 
The <dfn xml:lang="en"><code class="CSS" xml:lang="en">:<anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">-manakai-contains</anchor>(<var xml:lang="en">s</var>)</code></dfn>
pseudo-class has the same semantics and syntax as of
<code class="CSS" xml:lang="en">:<anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">contains</anchor>(<var xml:lang="en">s</var>)</code> pseudo-class
<anchor-external xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:resParameter="http://www.w3.org/TR/2001/CR-css3-selectors-20011113/#content-selectors" xmlns:a0="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:resScheme="URI">http://www.w3.org/TR/2001/CR-css3-selectors-20011113/#content-selectors</anchor-external>.</p><p><anchor-end xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:anchor="2" xmlns:a0="urn:x-suika-fam-cx:markup:suikawiki:0:9:">[2]</anchor-end>
The <dfn xml:lang="en"><code class="CSS" xml:lang="en">:<anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">-manakai-current</anchor></code></dfn>
pseudo-class represents an element that is currently
selected for the purpose of querying (known as
<dfn xml:lang="en">current element</dfn>).</p><p>Unless explicitly defined by a specification, current element is 
null and therefore no element matches with this pseudo-class.</p><p>For selectors specified in the first argument of
<code class="DOMm" xml:lang="en"><anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">querySelector</anchor></code> or
<code class="DOMm" xml:lang="en"><anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">querySelectorAll</anchor></code> method
of <code class="DOMi" xml:lang="en"><anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">ElementSelector</anchor></code> interface,
the current element is the element on which
the method is invoked.</p><comment-p xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:10:">
For example, a Perl subroutine:<pre xmlns="http://www.w3.org/1999/xhtml" class="perl example code">sub {
  $doc-&gt;inner_html
      (q[&lt;section&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;section&gt;&lt;p&gt;&lt;/p&gt;&lt;/section&gt;&lt;p&gt;&lt;/p&gt;&lt;/section&gt;]);
  my $section = $doc-&gt;get_elements_by_tag_name ('section')-&gt;[0];
  return @{$section-&gt;query_selector (':-manakai-current &gt; p')};
};</pre>... will return an array of three <code xmlns="http://www.w3.org/1999/xhtml" class="DOMi" xml:lang="en"><anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">Element</anchor></code>
nodes: first, second, and fourth <code xmlns="http://www.w3.org/1999/xhtml" class="HTMLe" xml:lang="en"><anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">p</anchor></code>
elements, but third <code xmlns="http://www.w3.org/1999/xhtml" class="HTMLe" xml:lang="en"><anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">p</anchor></code> element
in the child <code xmlns="http://www.w3.org/1999/xhtml" class="HTMLe" xml:lang="en"><anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">section</anchor></code> element will not
returned.  Note that 
<code xmlns="http://www.w3.org/1999/xhtml" class="perl code example" xml:lang="en">$doc-&gt;query_selector (':-manakai-current &gt; p')</code>
will return no node, since current element is not defined
for the <code xmlns="http://www.w3.org/1999/xhtml" class="DOMi" xml:lang="en"><anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">DocumentSelector</anchor></code> interface.</comment-p></body></html>