mirror of
https://github.com/TangentFoxy/lua-htmlparser.git
synced 2025-07-30 03:52:17 +00:00
closes #7
Extracting microdata is fairly tedious compared to microformats, due to its generality. Should probably be included as a standard function of the parser, or even better, as a separate module, which then can concern itself with being fully standards compliant.
This commit is contained in:
35
test.html
35
test.html
@@ -39,23 +39,24 @@
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
<section itemscope itemtype="http://schema.org/Person">
|
||||
Hello, my name is
|
||||
<span itemprop="name">John Doe</span>,
|
||||
I am a
|
||||
<span itemprop="jobTitle">graduate research assistant</span>
|
||||
at the
|
||||
<span itemprop="affiliation">University of Dreams</span>.
|
||||
My friends call me
|
||||
<span itemprop="additionalName">Johnny</span>.
|
||||
You can visit my homepage at
|
||||
<a href="http://www.JohnnyD.com" itemprop="url">www.JohnnyD.com</a>.
|
||||
<section itemprop="address" itemscope itemtype="http://schema.org/PostalAddress">
|
||||
I live at
|
||||
<span itemprop="streetAddress">1234 Peach Drive</span>,
|
||||
<span itemprop="addressLocality">Warner Robins</span>,
|
||||
<span itemprop="addressRegion">Georgia</span>.
|
||||
<h1>About me</h1>
|
||||
<section itemscope itemtype="http://schema.org/Person">
|
||||
Hello, my name is
|
||||
<span itemprop="name">John Doe</span>,
|
||||
I am a
|
||||
<span itemprop="jobTitle">graduate research assistant</span>
|
||||
at the
|
||||
<span itemprop="affiliation">University of Dreams</span>.
|
||||
My friends call me
|
||||
<span itemprop="additionalName">Johnny</span>.
|
||||
You can visit my homepage at
|
||||
<a href="http://www.JohnnyD.com" itemprop="url">www.JohnnyD.com</a>.
|
||||
<section itemprop="address" itemscope itemtype="http://schema.org/PostalAddress">
|
||||
I live at
|
||||
<span itemprop="streetAddress">1234 Peach Drive</span>,
|
||||
<span itemprop="addressLocality">Warner Robins</span>,
|
||||
<span itemprop="addressRegion">Georgia</span>.
|
||||
</section>
|
||||
</section>
|
||||
</section>
|
||||
</body>
|
||||
</html>
|
Reference in New Issue
Block a user