mirror of
https://github.com/msva/lua-htmlparser.git
synced 2024-11-04 23:34:20 +00:00
Create gh-pages branch via GitHub
This commit is contained in:
parent
4bac9dcb27
commit
dc3817399f
13
index.html
13
index.html
@ -121,15 +121,22 @@ Now, find sepcific contained elements by selecting:</p>
|
||||
|
||||
<ul>
|
||||
<li>Attribute values in selectors currently cannot contain any spaces, since space is interpreted as a delimiter between the <code>ancestor</code> and <code>descendant</code>, <code>parent</code> and <code>></code>, or <code>></code> and <code>child</code> parts of the selector</li>
|
||||
<li>Likewise, for the <code>parent > child</code> relation, the spaces before and after the <code>></code> are mandatory</li>
|
||||
<li>Consequently, for the <code>parent > child</code> relation, the spaces before and after the <code>></code> are mandatory</li>
|
||||
<li>Attribute values in selectors currently also cannot contain any of <code>#</code>, <code>.</code>, <code>[</code>, <code>]</code>, <code>:</code>, <code>(</code>, or <code>)</code>
|
||||
</li>
|
||||
<li>
|
||||
<code><!</code> elements are not parsed, including doctype, comments, and CDATA</li>
|
||||
<li>Textnodes are not seperate entries in the tree, so the content of <code><p>line1<br />line2</p></code> is plainly <code>"line1<br />line2"</code>
|
||||
</li>
|
||||
<li>All start and end tags should be explicitly specified in the text to be parsed; omitted tags (as <a href="http://www.w3.org/TR/html5/syntax.html#optional-tags">permitted</a> by the the HTML spec) are NOT implied. Only the <a href="http://www.w3.org/TR/html5/syntax.html#void-elements">void</a> elements naturally don't need an end tag</li>
|
||||
<li>All start and end tags should be explicitly specified in the text to be parsed; omitted tags (as <a href="http://www.w3.org/TR/html5/syntax.html#optional-tags">permitted</a> by the the HTML spec) are NOT implied. Only the <a href="http://www.w3.org/TR/html5/syntax.html#void-elements">void</a> elements naturally don't need (and mustn't have) an end tag</li>
|
||||
<li>The HTML text is not validated in any way; tag and attribute names and the nesting of different tags is completely arbitrary. The only HTML-specific part of the parser is that it knows which tags are void elements</li>
|
||||
</ul><h2>Examples</h2>
|
||||
|
||||
<p>See <code>./doc/samples.lua</code></p>
|
||||
<p>See <code>./doc/sample.lua</code></p>
|
||||
|
||||
<h2>Tests</h2>
|
||||
|
||||
<p>See <code>./tst/init.lua</code></p>
|
||||
|
||||
<h2>Element type</h2>
|
||||
|
||||
|
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue
Block a user