Navigation Menu

Skip to content

Commit

Permalink
fixed a few more headings
Browse files Browse the repository at this point in the history
  • Loading branch information
kraih committed Jan 7, 2013
1 parent d666635 commit 87cd5ce
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 33 deletions.
1 change: 1 addition & 0 deletions Changes
Expand Up @@ -2,6 +2,7 @@
3.75 2013-01-08
- Added to_route method to Mojo::Path.
- Improved router performance slightly.
- Improved documentation.
- Improved tests.

3.74 2013-01-07
Expand Down
58 changes: 29 additions & 29 deletions lib/Mojo/DOM/CSS.pm
Expand Up @@ -403,7 +403,7 @@ L<Mojo::DOM::CSS> is the CSS selector engine used by L<Mojo::DOM>.
All CSS selectors that make sense for a standalone parser are supported.
=head2 C<*>
=head2 *
Any element.
Expand All @@ -415,65 +415,65 @@ An element of type C<E>.
my $title = $css->select('title');
=head2 C<E[foo]>
=head2 E[foo]
An C<E> element with a C<foo> attribute.
my $links = $css->select('a[href]');
=head2 C<E[foo="bar"]>
=head2 E[foo="bar"]
An C<E> element whose C<foo> attribute value is exactly equal to C<bar>.
my $fields = $css->select('input[name="foo"]');
=head2 C<E[foo~="bar"]>
=head2 E[foo~="bar"]
An C<E> element whose C<foo> attribute value is a list of
whitespace-separated values, one of which is exactly equal to C<bar>.
my $fields = $css->select('input[name~="foo"]');
=head2 C<E[foo^="bar"]>
=head2 E[foo^="bar"]
An C<E> element whose C<foo> attribute value begins exactly with the string
C<bar>.
my $fields = $css->select('input[name^="f"]');
=head2 C<E[foo$="bar"]>
=head2 E[foo$="bar"]
An C<E> element whose C<foo> attribute value ends exactly with the string
C<bar>.
my $fields = $css->select('input[name$="o"]');
=head2 C<E[foo*="bar"]>
=head2 E[foo*="bar"]
An C<E> element whose C<foo> attribute value contains the substring C<bar>.
my $fields = $css->select('input[name*="fo"]');
=head2 C<E:root>
=head2 E:root
An C<E> element, root of the document.
my $root = $css->select(':root');
=head2 C<E:checked>
=head2 E:checked
A user interface element C<E> which is checked (for instance a radio-button or
checkbox).
my $input = $css->select(':checked');
=head2 C<E:empty>
=head2 E:empty
An C<E> element that has no children (including text nodes).
my $empty = $css->select(':empty');
=head2 C<E:nth-child(n)>
=head2 E:nth-child(n)
An C<E> element, the C<n-th> child of its parent.
Expand All @@ -482,7 +482,7 @@ An C<E> element, the C<n-th> child of its parent.
my $even = $css->select('div:nth-child(even)');
my $top3 = $css->select('div:nth-child(-n+3)');
=head2 C<E:nth-last-child(n)>
=head2 E:nth-last-child(n)
An C<E> element, the C<n-th> child of its parent, counting from the last one.
Expand All @@ -491,7 +491,7 @@ An C<E> element, the C<n-th> child of its parent, counting from the last one.
my $even = $css->select('div:nth-last-child(even)');
my $bottom3 = $css->select('div:nth-last-child(-n+3)');
=head2 C<E:nth-of-type(n)>
=head2 E:nth-of-type(n)
An C<E> element, the C<n-th> sibling of its type.
Expand All @@ -500,7 +500,7 @@ An C<E> element, the C<n-th> sibling of its type.
my $even = $css->select('div:nth-of-type(even)');
my $top3 = $css->select('div:nth-of-type(-n+3)');
=head2 C<E:nth-last-of-type(n)>
=head2 E:nth-last-of-type(n)
An C<E> element, the C<n-th> sibling of its type, counting from the last one.
Expand All @@ -509,91 +509,91 @@ An C<E> element, the C<n-th> sibling of its type, counting from the last one.
my $even = $css->select('div:nth-last-of-type(even)');
my $bottom3 = $css->select('div:nth-last-of-type(-n+3)');
=head2 C<E:first-child>
=head2 E:first-child
An C<E> element, first child of its parent.
my $first = $css->select('div p:first-child');
=head2 C<E:last-child>
=head2 E:last-child
An C<E> element, last child of its parent.
my $last = $css->select('div p:last-child');
=head2 C<E:first-of-type>
=head2 E:first-of-type
An C<E> element, first sibling of its type.
my $first = $css->select('div p:first-of-type');
=head2 C<E:last-of-type>
=head2 E:last-of-type
An C<E> element, last sibling of its type.
my $last = $css->select('div p:last-of-type');
=head2 C<E:only-child>
=head2 E:only-child
An C<E> element, only child of its parent.
my $lonely = $css->select('div p:only-child');
=head2 C<E:only-of-type>
=head2 E:only-of-type
An C<E> element, only sibling of its type.
my $lonely = $css->select('div p:only-of-type');
=head2 C<E.warning>
=head2 E.warning
my $warning = $css->select('div.warning');
An C<E> element whose class is "warning".
=head2 C<E#myid>
=head2 E#myid
my $foo = $css->select('div#foo');
An C<E> element with C<ID> equal to "myid".
=head2 C<E:not(s)>
=head2 E:not(s)
An C<E> element that does not match simple selector C<s>.
my $others = $css->select('div p:not(:first-child)');
=head2 C<E F>
=head2 E F
An C<F> element descendant of an C<E> element.
my $headlines = $css->select('div h1');
=head2 C<E E<gt> F>
=head2 E E<gt> F
An C<F> element child of an C<E> element.
my $headlines = $css->select('html > body > div > h1');
=head2 C<E + F>
=head2 E + F
An C<F> element immediately preceded by an C<E> element.
my $second = $css->select('h1 + h2');
=head2 C<E ~ F>
=head2 E ~ F
An C<F> element preceded by an C<E> element.
my $second = $css->select('h1 ~ h2');
=head2 C<E, F, G>
=head2 E, F, G
Elements of type C<E>, C<F> and C<G>.
my $headlines = $css->select('h1, h2, h3');
=head2 C<E[foo=bar][bar=baz]>
=head2 E[foo=bar][bar=baz]
An C<E> element whose attributes match all following attribute selectors.
Expand Down
8 changes: 4 additions & 4 deletions lib/Mojolicious/Commands.pm
Expand Up @@ -206,27 +206,27 @@ List available generator commands with short descriptions.
List available options for generator command with short descriptions.
=head2 C<generate app>
=head2 generate app
$ mojo generate app <AppName>
Generate application directory structure for a fully functional L<Mojolicious>
application.
=head2 C<generate lite_app>
=head2 generate lite_app
$ mojo generate lite_app
Generate a fully functional L<Mojolicious::Lite> application.
=head2 C<generate makefile>
=head2 generate makefile
$ mojo generate makefile
$ ./myapp.pl generate makefile
Generate C<Makefile.PL> file for application.
=head2 C<generate plugin>
=head2 generate plugin
$ mojo generate plugin <PluginName>
Expand Down

0 comments on commit 87cd5ce

Please sign in to comment.