Skip to content

Commit 08af526

Browse files
committed
Merge branch 'main' of [email protected]:WebComponentsGuide/webcomponents.guide
2 parents 6a84a61 + cb22cce commit 08af526

8 files changed

+1538
-57
lines changed

.spelling

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# markdown-spellcheck spelling configuration file
2+
# Format - lines beginning # are comments
3+
# global dictionary is at the start, file overrides afterwards
4+
# one word per line, to define a file override use ' - filename'
5+
# where filename is relative to this configuration file
6+
lifecycle
7+
devtools
8+
macOS
9+
iOS
10+
18
11+
SeaMonkey
12+
polyfills
13+
CSS
14+
APIs
15+
ShadowDOM

learn/components/naming-your-components.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ There are some specific rules that you must adhere to to make a valid tag name:
1616
- It _can_ contain underscores, and numbers.
1717
- It _can_ contain characters from different alphabets, such as `é`, `ð`, `ö`, ``.
1818

19-
An invalid name will cause a `DOMException` to be thrown when you set up your custom element.
19+
An invalid name will cause a `DOMException` to be thrown when you set up your custom element.
2020

2121
Try typing a tag name below to see if it's a valid custom element tag:
2222

@@ -59,8 +59,7 @@ DOMException: CustomElementRegistry.define: 'annotation-xml' is not a valid cust
5959

6060
## Tips on naming element
6161

62-
While none of the following is prescriptive, here are some tips and tricks on how to pick a good name for your
63-
elements:
62+
While none of the following is prescriptive, here are some tips and tricks on how to pick a good name for your elements:
6463

6564
### Avoid splitting compound words
6665

learn/index.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ you've got a server that can render HTML, then you can render Web Components!
1212

1313
Web Components allow you to extend the vocabulary of your HTML. You can define new behaviors that go beyond the built in
1414
tags. New features such as `<slide-out-menu>` or `<stop-watch>` are at your finger tips. JavaScript can drive these
15-
definitions, allowing advanced behaviours and interactions.
15+
definitions, allowing advanced behaviors and interactions.
1616

1717
{% tip %}
1818

@@ -22,7 +22,7 @@ apart from native elements. New native elements will never have a dash, and so w
2222
{% endtip %}
2323

2424
Here's an example of a web component that renders a timer. It defines its own [styles][styles], it renders into a
25-
[shadowroot][shadowroot], and has its own [private state][private-state]. It makes use of the [lifecycle
25+
[shadow root][shadowroot], and has its own [private state][private-state]. It makes use of the [lifecycle
2626
callbacks][lifecycle] to know when to start counting. These are all built in web platform features!
2727

2828
[styles]: /learn/components/styling

learn/set-up-your-environment.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ set of devtools makes it much easier to debug your application. A lot of develop
1212
browser][chrome], which has powerful built in devtools. [Mozilla Firefox][firefox] is another great option with equally
1313
good devtools. There's also Mozilla [Firefox Developer edition][firefox-dev] which has extra features, like an
1414
Integrated Development Environment. [Microsoft Edge][edge] is another great browser, built on the same technologies as
15-
Google Chrome. If you're on [MacOS][macos] then [Safari][safari] can be a good choice, but it's not quite as capable as
15+
Google Chrome. If you're on [macOS][macos] then [Safari][safari] can be a good choice, but it's not quite as capable as
1616
the other browsers. Safari's devtools aren't quite as capable as the others, and it lacks support for some Web Component
1717
features.
1818

@@ -52,7 +52,7 @@ make the most of them.
5252
If you're using Google Chrome, check out the [Chrome Developers documentation on the Chrome Devtools][chrome-devtools].
5353
It's a great resource for learning exactly how the developer tools inside Google Chrome work. Mozilla has a similar
5454
[guide on Firefox Developer Tools][firefox-devtools]. Microsoft have a smaller but still useful [guide on the Edge
55-
developer tools][edge-devtools]. Apple's Safari has a useful [five minute walkthrough of their Web
55+
developer tools][edge-devtools]. Apple's Safari has a useful [five minute walk through of their Web
5656
Inspector][safari-devtools].
5757

5858
Here's a handy guide on how to quickly access the developer tools, depending on your browser and OS:
@@ -77,7 +77,7 @@ Here's a handy guide on how to quickly access the developer tools, depending on
7777
To get starting writing web components you'll need a development environment. While you can use any text editor to
7878
develop, using an Integrated Development Environment (IDE) will give you lots of features that can make for a much
7979
better developer experience. One of the most popular IDEs today is [VS Code][vscode], and with good reason! It comes
80-
with exelent support for writing HTML, JavaScript and CSS out of the box as well as some great plugins that you can
80+
with excellent support for writing HTML, JavaScript and CSS out of the box as well as some great plugins that you can
8181
install. It can hook directly into web browsers like Chrome or Firefox using the allowing you to debug your applications
8282
without leaving your editor. All of these features makes it ideal for writing Web Components and websites that use them.
8383

learn/your-first-web-component.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ title: Your First Web Component
88

99
The term "Web Components" encompasses a lot of individual APIs, some that have existed for a very long time in the web,
1010
and some that are much newer. If you've written JavaScript before then you might be familiar with [Classes][classes], If
11-
you've written JavaScript for the _web_ before, you might already be familar with some of _those_ APIs too, for example
11+
you've written JavaScript for the _web_ before, you might already be familiar with some of _those_ APIs too, for example
1212
[Events][events] and the [DOM APIs][dom-apis] like `querySelector`. Many Web Components will make use of those existing
1313
APIs.
1414

0 commit comments

Comments
 (0)