Skip to content

Commit

Permalink
Fix typos (jhy#1830)
Browse files Browse the repository at this point in the history
* Fix some typos in documentation
  • Loading branch information
mernst authored Aug 29, 2022
1 parent 8b5d2ad commit eabfcdd
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 9 deletions.
4 changes: 2 additions & 2 deletions CHANGES
Original file line number Diff line number Diff line change
Expand Up @@ -784,7 +784,7 @@ Release 1.15.3 [2022-Aug-24]
* Improved Node traversal, including less object creation, and partial and filtering traversor support.
<https://github.com/jhy/jsoup/pull/849>

* Bugfix: if a document was was re-decoded after character set detection, the HTML parser was not reset correctly,
* Bugfix: if a document was re-decoded after character set detection, the HTML parser was not reset correctly,
which could lead to an incorrect DOM.
<https://github.com/jhy/jsoup/issues/877>

Expand Down Expand Up @@ -1003,7 +1003,7 @@ Release 1.15.3 [2022-Aug-24]
* Added not-null validators to Element.appendText() and Element.prependText()
<https://github.com/jhy/jsoup/issues/690>

* Fixed an issue when moving moving nodes using Element.insert(index, children) where the sibling index would be set
* Fixed an issue when moving nodes using Element.insert(index, children) where the sibling index would be set
incorrectly, leading to the original loads being lost.
<https://github.com/jhy/jsoup/issues/689>

Expand Down
4 changes: 2 additions & 2 deletions src/main/java/org/jsoup/nodes/Element.java
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ public Element(String tag) {
}

/**
* Create a new, standalone Element. (Standalone in that is has no parent.)
* Create a new, standalone Element. (Standalone in that it has no parent.)
*
* @param tag tag of this element
* @param baseUri the base URI (optional, may be null to inherit from parent, or "" to clear parent's)
Expand Down Expand Up @@ -1085,7 +1085,7 @@ public Elements getElementsByAttribute(String key) {
* Find elements that have an attribute name starting with the supplied prefix. Use {@code data-} to find elements
* that have HTML5 datasets.
* @param keyPrefix name prefix of the attribute e.g. {@code data-}
* @return elements that have attribute names that start with with the prefix, empty if none.
* @return elements that have attribute names that start with the prefix, empty if none.
*/
public Elements getElementsByAttributeStarting(String keyPrefix) {
Validate.notEmpty(keyPrefix);
Expand Down
4 changes: 2 additions & 2 deletions src/main/java/org/jsoup/nodes/Node.java
Original file line number Diff line number Diff line change
Expand Up @@ -452,7 +452,7 @@ void nodelistChanged() {

/**
* Replace this node in the DOM with the supplied node.
* @param in the node that will will replace the existing node.
* @param in the node that will replace the existing node.
*/
public void replaceWith(Node in) {
Validate.notNull(in);
Expand Down Expand Up @@ -763,7 +763,7 @@ public int hashCode() {
}

/**
* Check if this node is has the same content as another node. A node is considered the same if its name, attributes and content match the
* Check if this node has the same content as another node. A node is considered the same if its name, attributes and content match the
* other node; particularly its position in the tree does not influence its similarity.
* @param o other object to compare to
* @return true if the content of this node is the same as the other
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/org/jsoup/parser/TokenQueue.java
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ else if (skip < 0) // no chance of finding, grab to end
@return consumed string
*/
// todo: method name. not good that consumeTo cares for case, and consume to any doesn't. And the only use for this
// is is a case sensitive time...
// is a case sensitive time...
public String consumeToAny(String... seq) {
int start = pos;
while (!isEmpty() && !matchesAny(seq)) {
Expand Down
4 changes: 2 additions & 2 deletions src/test/java/org/jsoup/parser/HtmlParserTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -672,7 +672,7 @@ public class HtmlParserTest {
}

@Test public void handlesUnexpectedMarkupInTables() {
// whatwg - tests markers in active formatting (if they didn't work, would get in in table)
// whatwg - tests markers in active formatting (if they didn't work, would get in table)
// also tests foster parenting
String h = "<table><b><tr><td>aaa</td></tr>bbb</table>ccc";
Document doc = Jsoup.parse(h);
Expand Down Expand Up @@ -1633,4 +1633,4 @@ private boolean didAddElements(String input) {
assertEquals("<template><select></select><input>&lt;</template>",
TextUtil.stripNewlines(doc.head().html()));
}
}
}

0 comments on commit eabfcdd

Please sign in to comment.