Skip to content

Commit

Permalink
no need to mention HTML and CSS versions
Browse files Browse the repository at this point in the history
  • Loading branch information
kraih committed Aug 13, 2012
1 parent caa0866 commit f4a860c
Show file tree
Hide file tree
Showing 13 changed files with 37 additions and 37 deletions.
2 changes: 1 addition & 1 deletion README.pod
Expand Up @@ -48,7 +48,7 @@ Automatic CGI and L<PSGI> detection.

=item *

JSON and HTML5/XML parser with CSS3 selector support.
JSON and HTML/XML parser with CSS selector support.

=item *

Expand Down
2 changes: 1 addition & 1 deletion lib/Mojo/ByteStream.pm
Expand Up @@ -203,7 +203,7 @@ Escape unsafe characters in bytestream with L<Mojo::Util/"html_escape">.
$stream = $stream->html_unescape;
Unescape all HTML5 entities in bytestream with L<Mojo::Util/"html_unescape">.
Unescape all HTML entities in bytestream with L<Mojo::Util/"html_unescape">.
b('&lt;html&gt;')->html_unescape->url_escape->say;
Expand Down
14 changes: 7 additions & 7 deletions lib/Mojo/DOM.pm
Expand Up @@ -404,7 +404,7 @@ sub _trim {

=head1 NAME
Mojo::DOM - Minimalistic HTML5/XML DOM parser with CSS3 selectors
Mojo::DOM - Minimalistic HTML/XML DOM parser with CSS selectors
=head1 SYNOPSIS
Expand Down Expand Up @@ -437,7 +437,7 @@ Mojo::DOM - Minimalistic HTML5/XML DOM parser with CSS3 selectors
=head1 DESCRIPTION
L<Mojo::DOM> is a minimalistic and relaxed HTML5/XML DOM parser with CSS3
L<Mojo::DOM> is a minimalistic and relaxed HTML/XML DOM parser with CSS
selector support. It will even try to interpret broken XML, so you should not
use it for validation.
Expand Down Expand Up @@ -512,8 +512,8 @@ Append to element content.
my $result = $dom->at('html title');
Find a single element with CSS3 selectors. All selectors from
L<Mojo::DOM::CSS> are supported.
Find a single element with CSS selectors. All selectors from L<Mojo::DOM::CSS>
are supported.
# Find first element with "svg" namespace definition
my $namespace = $dom->at('[xmlns\:svg]')->{'xmlns:svg'};
Expand Down Expand Up @@ -559,7 +559,7 @@ C<charset> has been defined.
my $collection = $dom->find('html title');
Find elements with CSS3 selectors and return a L<Mojo::Collection> object. All
Find elements with CSS selectors and return a L<Mojo::Collection> object. All
selectors from L<Mojo::DOM::CSS> are supported.
# Find a specific element and extract information
Expand Down Expand Up @@ -590,7 +590,7 @@ Parent of element.
$dom = $dom->parse('<foo bar="baz">test</foo>');
Parse HTML5/XML document with L<Mojo::DOM::HTML>.
Parse HTML/XML document with L<Mojo::DOM::HTML>.
# Parse UTF-8 encoded XML
my $dom = Mojo::DOM->new->charset('UTF-8')->xml(1)->parse($xml);
Expand Down Expand Up @@ -727,7 +727,7 @@ Element type.
my $xml = $dom->xml;
$dom = $dom->xml(1);
Disable HTML5 semantics in parser and activate case sensitivity, defaults to
Disable HTML semantics in parser and activate case sensitivity, defaults to
auto detection based on processing instructions.
=head1 CHILD ELEMENTS
Expand Down
8 changes: 4 additions & 4 deletions lib/Mojo/DOM/CSS.pm
Expand Up @@ -382,7 +382,7 @@ sub _unescape {

=head1 NAME
Mojo::DOM::CSS - CSS3 selector engine
Mojo::DOM::CSS - CSS selector engine
=head1 SYNOPSIS
Expand All @@ -394,11 +394,11 @@ Mojo::DOM::CSS - CSS3 selector engine
=head1 DESCRIPTION
L<Mojo::DOM::CSS> is the CSS3 selector engine used by L<Mojo::DOM>.
L<Mojo::DOM::CSS> is the CSS selector engine used by L<Mojo::DOM>.
=head1 SELECTORS
All CSS3 selectors that make sense for a standalone parser are supported.
All CSS selectors that make sense for a standalone parser are supported.
=head2 C<*>
Expand Down Expand Up @@ -616,7 +616,7 @@ following new ones.
my $results = $css->select('head > title');
Run CSS3 selector against C<tree>.
Run CSS selector against C<tree>.
=head1 SEE ALSO
Expand Down
12 changes: 6 additions & 6 deletions lib/Mojo/DOM/HTML.pm
Expand Up @@ -386,20 +386,20 @@ sub _text {

=head1 NAME
Mojo::DOM::HTML - HTML5/XML engine
Mojo::DOM::HTML - HTML/XML engine
=head1 SYNOPSIS
use Mojo::DOM::HTML;
# Turn HTML5 into DOM tree
# Turn HTML into DOM tree
my $html = Mojo::DOM::HTML->new;
$html->parse('<div><p id="a">A</p><p id="b">B</p></div>');
my $tree = $html->tree;
=head1 DESCRIPTION
L<Mojo::DOM::HTML> is the HTML5/XML engine used by L<Mojo::DOM>.
L<Mojo::DOM::HTML> is the HTML/XML engine used by L<Mojo::DOM>.
=head1 ATTRIBUTES
Expand All @@ -410,7 +410,7 @@ L<Mojo::DOM::HTML> implements the following attributes.
my $charset = $html->charset;
$html = $html->charset('UTF-8');
Charset used for decoding and encoding HTML5/XML.
Charset used for decoding and encoding HTML/XML.
=head2 C<tree>
Expand All @@ -424,7 +424,7 @@ Document Object Model.
my $xml = $html->xml;
$html = $html->xml(1);
Disable HTML5 semantics in parser and activate case sensitivity, defaults to
Disable HTML semantics in parser and activate case sensitivity, defaults to
auto detection based on processing instructions.
=head1 METHODS
Expand All @@ -436,7 +436,7 @@ following new ones.
$html = $html->parse('<foo bar="baz">test</foo>');
Parse HTML5/XML document.
Parse HTML/XML document.
=head2 C<render>
Expand Down
4 changes: 2 additions & 2 deletions lib/Mojo/Util.pm
Expand Up @@ -505,14 +505,14 @@ Generate HMAC-SHA1 checksum for string.
my $escaped = html_escape $string;
my $escaped = html_escape $string, '^\n\r\t !#$%(-;=?-~';
Escape unsafe characters in string with HTML5 entities, the pattern used
Escape unsafe characters in string with HTML entities, the pattern used
defaults to C<^\n\r\t !#$%(-;=?-~>.
=head2 C<html_unescape>
my $string = html_unescape $escaped;
Unescape all HTML5 entities in string.
Unescape all HTML entities in string.
=head2 C<md5_bytes>
Expand Down
2 changes: 1 addition & 1 deletion lib/Mojolicious/Command/get.pm
Expand Up @@ -25,7 +25,7 @@ usage: $0 get [OPTIONS] URL [SELECTOR|JSON-POINTER] [COMMANDS]
mojo get http://search.twitter.com/search.json /error
These options are available:
-C, --charset <charset> Charset of HTML5/XML content, defaults to auto
-C, --charset <charset> Charset of HTML/XML content, defaults to auto
detection or "UTF-8".
-c, --content <content> Content to send with request.
-H, --header <name:value> Additional HTTP header.
Expand Down
2 changes: 1 addition & 1 deletion lib/Mojolicious/Guides.pod
Expand Up @@ -79,7 +79,7 @@ Full featured non-blocking I/O HTTP and WebSocket user agent.

=item L<Mojo::DOM>

Very fun and minimalistic HTML5/XML DOM parser with CSS3 selector support.
Very fun and minimalistic HTML/XML DOM parser with CSS selector support.

=item L<Mojo::JSON>

Expand Down
10 changes: 5 additions & 5 deletions lib/Mojolicious/Guides/Cookbook.pod
Expand Up @@ -500,9 +500,9 @@ L<Test::Mojo> API to be used.

=head2 EventSource web service

HTML5 EventSource is a special form of long-polling where you can directly
send DOM events from servers to clients. It is uni-directional, that means you
will have to use Ajax requests for sending data from clients to servers, the
EventSource is a special form of long-polling where you can directly send DOM
events from servers to clients. It is uni-directional, that means you will
have to use Ajax requests for sending data from clients to servers, the
advantage however is low infrastructure requirements, since it reuses the HTTP
protocol for transport.

Expand Down Expand Up @@ -682,7 +682,7 @@ When we say L<Mojolicious> is a web framework we actually mean it.
=head2 Web scraping

Scraping information from web sites has never been this much fun before. The
built-in HTML5/XML parser L<Mojo::DOM> supports all CSS3 selectors that make
built-in HTML/XML parser L<Mojo::DOM> supports all CSS selectors that make
sense for a standalone parser.

use Mojo::UserAgent;
Expand Down Expand Up @@ -951,7 +951,7 @@ be able to work standalone as well as inside L<Mojolicious> applications.

Don't you hate checking huge HTML files from the command line? Thanks to the
C<mojo get> command that is about to change. You can just pick the parts that
actually matter with the CSS3 selectors from L<Mojo::DOM> and JSON Pointers
actually matter with the CSS selectors from L<Mojo::DOM> and JSON Pointers
from L<Mojo::JSON::Pointer>.

$ mojo get http://mojolicio.us 'head > title'
Expand Down
2 changes: 1 addition & 1 deletion lib/Mojolicious/Guides/Growing.pod
Expand Up @@ -280,7 +280,7 @@ promote it wherever we can.
$ chmod 644 t/login.t

L<Test::Mojo> is a scriptable HTTP user agent designed specifically for
testing, with many fun state of the art features such as CSS3 selectors based
testing, with many fun state of the art features such as CSS selectors based
on L<Mojo::DOM>.

use Test::More tests => 16;
Expand Down
4 changes: 2 additions & 2 deletions lib/Mojolicious/Plugin/TagHelpers.pm
Expand Up @@ -284,7 +284,7 @@ Mojolicious::Plugin::TagHelpers - Tag helpers plugin
=head1 DESCRIPTION
L<Mojolicious::Plugin::TagHelpers> is a collection of HTML5 tag helpers for
L<Mojolicious::Plugin::TagHelpers> is a collection of HTML tag helpers for
L<Mojolicious>.
Most form helpers can automatically pick up previous input values and will
Expand Down Expand Up @@ -534,7 +534,7 @@ Alias for C<tag>.
%= tag div => 'some & content'
<%= tag div => begin %>some & content<% end %>
HTML5 tag generator.
HTML tag generator.
<div />
<div id="foo" />
Expand Down
10 changes: 5 additions & 5 deletions lib/Test/Mojo.pm
Expand Up @@ -344,7 +344,7 @@ Test::Mojo - Testing Mojo!
my $t = Test::Mojo->new('MyApp');
# HTML5/XML
# HTML/XML
$t->get_ok('/welcome')->status_is(200)->text_is('div#message' => 'Hello!');
# JSON
Expand Down Expand Up @@ -509,8 +509,8 @@ same arguments as L<Mojo::UserAgent/"delete">.
$t = $t->element_exists('div.foo[x=y]');
$t = $t->element_exists('html head title', 'has a title');
Checks for existence of the CSS3 selectors first matching HTML5/XML element
with L<Mojo::DOM>.
Checks for existence of the CSS selectors first matching HTML/XML element with
L<Mojo::DOM>.
=head2 C<element_exists_not>
Expand Down Expand Up @@ -731,7 +731,7 @@ Opposite of C<status_is>.
$t = $t->text_is('div.foo[x=y]' => 'Hello!');
$t = $t->text_is('html head title' => 'Hello!', 'right title');
Checks text content of the CSS3 selectors first matching HTML5/XML element for
Checks text content of the CSS selectors first matching HTML/XML element for
exact match with L<Mojo::DOM>.
=head2 C<text_isnt>
Expand All @@ -746,7 +746,7 @@ Opposite of C<text_is>.
$t = $t->text_like('div.foo[x=y]' => qr/Hello/);
$t = $t->text_like('html head title' => qr/Hello/, 'right title');
Checks text content of the CSS3 selectors first matching HTML5/XML element for
Checks text content of the CSS selectors first matching HTML/XML element for
similar match with L<Mojo::DOM>.
=head2 C<text_unlike>
Expand Down
2 changes: 1 addition & 1 deletion lib/ojo.pm
Expand Up @@ -214,7 +214,7 @@ L<Mojo::Message::Response> object.
my $dom = x('<div>Hello!</div>');
Turn HTML5/XML input into L<Mojo::DOM> object.
Turn HTML/XML input into L<Mojo::DOM> object.
$ perl -Mojo -E 'say x(b("test.html")->slurp)->at("title")->text'
Expand Down

0 comments on commit f4a860c

Please sign in to comment.