Permalink
Browse files

Misc: Spelling fixes

Closes gh-369
  • Loading branch information...
1 parent 26d30c4 commit 13ccec5813af1f5acf76e94b99f7f22ec9ab285b @jsoref jsoref committed with gibson042 Dec 4, 2015
Showing with 7 additions and 7 deletions.
  1. +2 −2 dist/sizzle.js
  2. +2 −2 speed/data/selector.html
  3. +2 −2 src/sizzle.js
  4. +1 −1 test/unit/selector.js
View
@@ -540,7 +540,7 @@ setDocument = Sizzle.setDocument = function( node ) {
// Support: IE<10
// Check if getElementById returns elements by name
- // The broken getElementById methods don't pick up programatically-set names,
+ // The broken getElementById methods don't pick up programmatically-set names,
// so use a roundabout getElementsByName test
support.getById = assert(function( div ) {
docElem.appendChild( div ).id = expando;
@@ -671,7 +671,7 @@ setDocument = Sizzle.setDocument = function( node ) {
// Support: Safari 8+, iOS 8+
// https://bugs.webkit.org/show_bug.cgi?id=136851
- // In-page `selector#id sibing-combinator selector` fails
+ // In-page `selector#id sibling-combinator selector` fails
if ( !div.querySelectorAll( "a#" + expando + "+*" ).length ) {
rbuggyQSA.push(".#.+[+~]");
}
@@ -2341,7 +2341,7 @@ <h4 id="first-formatted-line"><span class="secno">7.1.1. </span><dfn id="first-f
the first line only inherits properties applicable to the
<code>::first-line</code> pseudo-element from the
<code>::first-line</code> pseudo-element. For all other properties
- inheritence is from the non-pseudo-element parent of the first line pseudo
+ inheritance is from the non-pseudo-element parent of the first line pseudo
element. (The portion of a child element that does not occur on the first
line always inherits from the parent of that child.)
@@ -2745,7 +2745,7 @@ <h2 id="specificity"><span class="secno">9. </span>Calculating a selector's
</pre>
</div>
- <p class="note"><strong>Note:</strong> Repeated occurrances of the same
+ <p class="note"><strong>Note:</strong> Repeated occurrences of the same
simple selector are allowed and do increase specificity.
</p><p class="note"><strong>Note:</strong> the specificity of the styles
View
@@ -540,7 +540,7 @@ setDocument = Sizzle.setDocument = function( node ) {
// Support: IE<10
// Check if getElementById returns elements by name
- // The broken getElementById methods don't pick up programatically-set names,
+ // The broken getElementById methods don't pick up programmatically-set names,
// so use a roundabout getElementsByName test
support.getById = assert(function( div ) {
docElem.appendChild( div ).id = expando;
@@ -671,7 +671,7 @@ setDocument = Sizzle.setDocument = function( node ) {
// Support: Safari 8+, iOS 8+
// https://bugs.webkit.org/show_bug.cgi?id=136851
- // In-page `selector#id sibing-combinator selector` fails
+ // In-page `selector#id sibling-combinator selector` fails
if ( !div.querySelectorAll( "a#" + expando + "+*" ).length ) {
rbuggyQSA.push(".#.+[+~]");
}
@@ -514,7 +514,7 @@ test("attributes - whitespace list includes", function() {
t( "string found at the end", "input[data-15233~='baz']", [ "t15233-triple" ] );
});
-test("attributes - hypen-prefix matches", function() {
+test("attributes - hyphen-prefix matches", function() {
expect( 3 );
t( "string", "#names-group span[id|='name']", [ "name-is-example", "name-is-div" ] );

0 comments on commit 13ccec5

Please sign in to comment.