Skip to content

Commit 590a1b7

Browse files
authored
Fixed a few stray typos
1 parent 2db4637 commit 590a1b7

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

README.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ This package can be found on [packagist](https://packagist.org/packages/paquettg
2323
Usage
2424
-----
2525

26-
You can find many examples of how to use the dom parser and any of its parts (which you will most likely never touch) in the tests directory. The tests are done using PHPUnit and are very small, a few lines each, and are a great place to start. Given that, I'll still be showing a few examples of how the package should be used. The following example is a very simplistic usage of the package.
26+
You can find many examples of how to use the DOM parser and any of its parts (which you will most likely never touch) in the tests directory. The tests are done using PHPUnit and are very small, a few lines each, and are a great place to start. Given that, I'll still be showing a few examples of how the package should be used. The following example is a very simplistic usage of the package.
2727

2828
```php
2929
// Assuming you installed from Composer:
@@ -36,12 +36,12 @@ $a = $dom->find('a')[0];
3636
echo $a->text; // "click here"
3737
```
3838

39-
The above will output "click here". Simple no? There are many ways to get the same result from the dome, such as `$dom->getElementsbyTag('a')[0]` or `$dom->find('a', 0)` which can all be found in the tests or in the code itself.
39+
The above will output "click here". Simple, no? There are many ways to get the same result from the DOM, such as `$dom->getElementsbyTag('a')[0]` or `$dom->find('a', 0)`, which can all be found in the tests or in the code itself.
4040

4141
Loading Files
4242
------------------
4343

44-
You may also seamlessly load a file into the dom instead of a string, which is much more convenient and is how I except most developers will be loading the html. The following example is taken from our test and uses the "big.html" file found there.
44+
You may also seamlessly load a file into the DOM instead of a string, which is much more convenient and is how I expect most developers will be loading the HTML. The following example is taken from our test and uses the "big.html" file found there.
4545

4646
```php
4747
// Assuming you installed from Composer:
@@ -67,12 +67,12 @@ foreach ($contents as $content)
6767
}
6868
```
6969

70-
This example loads the html from big.html, a real page found online, and gets all the content-border classes to process. It also shows a few things you can do with a node but it is not an exhaustive list of methods that a node has available.
70+
This example loads the html from big.html, a real page found online, and gets all the content-border classes to process. It also shows a few things you can do with a node but it is not an exhaustive list of the methods that a node has available.
7171

72-
Loading Url
72+
Loading URLs
7373
----------------
7474

75-
Loading a url is very similar to the way you would load the html from a file.
75+
Loading a URL is very similar to the way you would load the HTML from a file.
7676

7777
```php
7878
// Assuming you installed from Composer:
@@ -88,7 +88,7 @@ $dom->loadFromUrl('http://google.com');
8888
$html = $dom->outerHtml; // same result as the first example
8989
```
9090

91-
loadFromUrl will, by default, use an implementation of the `\Psr\Http\Client\ClientInterface` to do the HTTP request and a default implementation of `\Psr\Http\Message\RequestInterface` to create the body of the request. You can easely implement your own version of either the client or request to use a custom HTTP connection when using loadFromUrl.
91+
loadFromUrl will, by default, use an implementation of the `\Psr\Http\Client\ClientInterface` to do the HTTP request and a default implementation of `\Psr\Http\Message\RequestInterface` to create the body of the request. You can easily implement your own version of either the client or request to use a custom HTTP connection when using loadFromUrl.
9292

9393
```php
9494
// Assuming you installed from Composer:
@@ -101,7 +101,7 @@ $dom->loadFromUrl('http://google.com', null, new MyClient());
101101
$html = $dom->outerHtml;
102102
```
103103

104-
As long as the client object implements the interface properly it will use that object to get the content of the url.
104+
As long as the client object implements the interface properly, it will use that object to get the content of the url.
105105

106106
Loading Strings
107107
---------------

0 commit comments

Comments
 (0)