From 7aff71d4a321327a4a6484e97b1a23554185bcd6 Mon Sep 17 00:00:00 2001
From: Nicolas Kaiser
Date: Mon, 2 Dec 2013 00:40:13 +0100
Subject: [PATCH] fix typos in README.md
---
README.md | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/README.md b/README.md
index cb5e397..9014980 100644
--- a/README.md
+++ b/README.md
@@ -22,7 +22,7 @@ Then, parse some html:
local root = htmlparser.parse(htmlstring)
```
The input to parse may be the contents of a complete html document, or any valid html snippet, as long as all tags are correctly opened and closed.
-Now, find sepcific contained elements by selecting:
+Now, find specific contained elements by selecting:
```lua
local elements = root:select(selectorstring)
```
@@ -89,7 +89,7 @@ All tree elements provide, apart from `:select` and `()`, the following accessor
- Attribute values in selector strings cannot contain any spaces, nor any of `#`, `.`, `[`, `]`, `:`, `(`, or `)`
- The spaces before and after the `>` in a `parent > child` relation are mandatory
- `line1
line2
")`, `root.nodes[1]:getcontent()` is `"line1
line2"`, while `root.nodes[1].nodes[1].name` is `"br"`
+- Textnodes are no separate tree elements; in `local root = htmlparser.parse("line1
line2
")`, `root.nodes[1]:getcontent()` is `"line1
line2"`, while `root.nodes[1].nodes[1].name` is `"br"`
- No start or end tags are implied when [omitted](http://www.w3.org/TR/html5/syntax.html#optional-tags). Only the [void elements](http://www.w3.org/TR/html5/syntax.html#void-elements) should not have an end tag
- No validation is done for tag or attribute names or nesting of element types. The list of void elements is in fact the only part specific to HTML