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
d5ce71d9ae
commit
4bac9dcb27
@ -123,9 +123,10 @@ Now, find sepcific contained elements by selecting:</p>
|
||||
<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>
|
||||
<code><!</code> elements are not parsed, including doctype and comments</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>
|
||||
</ul><h2>Examples</h2>
|
||||
|
||||
<p>See <code>./doc/samples.lua</code></p>
|
||||
|
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue
Block a user