Skip to content

Commit ad5e42c

Browse files
committed
docs($location): Html5 -> HTML5
1 parent 9ed1126 commit ad5e42c

2 files changed

Lines changed: 11 additions & 11 deletions

File tree

docs/content/guide/dev_guide.services.$location.ngdoc

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ changes to $location are reflected into the browser address bar.
5454
</tr>
5555

5656
<tr>
57-
<td class="head">seamless integration with html5 API</td>
57+
<td class="head">seamless integration with HTML5 API</td>
5858
<td>no</td>
5959
<td>yes (with a fallback for legacy browsers)</td>
6060
</tr>
@@ -92,7 +92,7 @@ To configure the `$location` service, you define the `$locationConfig` service w
9292
with configuration properties:
9393

9494
- **html5Mode**: {boolean}<br />
95-
`true` - see Html5 mode<br />
95+
`true` - see HTML5 mode<br />
9696
`false` - see Hashbang mode<br />
9797
default: `false`
9898

@@ -159,11 +159,11 @@ encoded.
159159
`/path?search=a&b=c#hash`. The segments are encoded as well.
160160

161161

162-
# Hashbang and Html5 Modes
162+
# Hashbang and HTML5 Modes
163163

164164
`$location` service has two configuration modes which control the format of the URL in the browser
165-
address bar: **Hashbang mode** (the default) and the **Html5 mode** which is based on using the
166-
Html5 {@link http://www.w3.org/TR/html5/history.html History API}. Applications use the same API in
165+
address bar: **Hashbang mode** (the default) and the **HTML5 mode** which is based on using the
166+
HTML5 {@link http://www.w3.org/TR/html5/history.html History API}. Applications use the same API in
167167
both modes and the `$location` service will work with appropriate URL segments and browser APIs to
168168
facilitate the browser URL change and history management.
169169

@@ -175,7 +175,7 @@ facilitate the browser URL change and history management.
175175
<tr>
176176
<td class="empty-corner-lt"></td>
177177
<td>Hashbang mode</td>
178-
<td>Html5 mode</td>
178+
<td>HTML5 mode</td>
179179
</tr>
180180

181181
</thead>
@@ -269,7 +269,7 @@ angular.service('$locationConfig', function() {
269269
};
270270
});
271271

272-
// in browser with html5 history support:
272+
// in browser with HTML5 history support:
273273
// open http://host.com/#!/a -> rewrite to http://host.com/a
274274
// (replacing the http://host.com/#!/a history record)
275275
$location.path() == '/a'
@@ -351,7 +351,7 @@ takes care of all relative link issues. **Otherwise you have to specify &lt;base
351351

352352
### Sending links among different browsers
353353

354-
Because of rewriting capability in Html5 mode, your users will be able to open regular url links in
354+
Because of rewriting capability in HTML5 mode, your users will be able to open regular url links in
355355
legacy browsers and hashbang links in modern browser:
356356

357357
- Modern browser will rewrite hashbang URLs to regular URLs.

src/service/location.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -96,18 +96,18 @@ function convertToHashbangUrl(url, basePath, hashPrefix) {
9696

9797
/**
9898
* LocationUrl represents an url
99-
* This object is exposed as $location service when html5 is enabled and supported
99+
* This object is exposed as $location service when HTML5 mode is enabled and supported
100100
*
101101
* @constructor
102-
* @param {string} url Html5 url
102+
* @param {string} url HTML5 url
103103
* @param {string} pathPrefix
104104
*/
105105
function LocationUrl(url, pathPrefix) {
106106
pathPrefix = pathPrefix || '';
107107

108108
/**
109109
* Parse given html5 (regular) url string into properties
110-
* @param {string} url Html5 url
110+
* @param {string} url HTML5 url
111111
* @private
112112
*/
113113
this.$$parse = function(url) {

0 commit comments

Comments
 (0)