<!--
NOTE:
The details of textContent processing are tested in a dedicated test
series, thus here valid output is carefully designed to pass even if no
trimming is performed.
-->
<div class="h-test-value">
<div class="p-single">Invalid <span class="value">Valid</span> Invalid</div>
<div class="p-double">Invalid <span class="value">Va</span> Invalid <span class="value">lid</span></div>
<div class="p-quintuple">Invalid <span class="value">V</span> <span class="value">a</span> <span class="value">l</span> <span class="value">i</span> <span class="value">d</span> Invalid</div>
<div class="p-nested">Invalid <span class="value">Va<span class="value">li</span>d</span> Invalid</div>
<div class="p-other-classes">Invalid <span class="a b value c d">Valid</span> Invalid</div>
<div class="p-self value">Invalid <span class="value">Valid</span> Invalid</div>
<div class="p-deep">Invalid <span class="value">Va</span> <span>Invalid <span>Invalid <span class="value">lid</span> Invalid</span> Invalid</span> Invalid</div>
<div class="p-is-property">Invalid <div class="value p-not-part-of-test">Valid</div> Invalid</div>
<div class="p-is-microformat">Invalid <div class="value h-test-child"><span class="p-name">Valid</span></div> Invalid</div>
<div class="p-inside-property">
Invalid
<span class="value">Valid</span>
<div class="p-not-part-of-test"><span class="value">NotPartOfTest</span></div>
Invalid
</div>
<!-- This is assumed to be the intent of the specification text; see https://github.com/microformats/microformats2-parsing/issues/63 -->
<div class="p-inside-microformat">
Invalid
<span class="value">Valid</span>
<div class="h-test-child"><span class="value">NotPartOfTest</span></div>
Invalid
</div>
</div>
<div class="h-test-img">
<div class="p-filled">Invalid <img class="value" alt="Valid"> Invalid</div>
<div class="p-filled-space">Invalid <img class="value" alt=" No Trim "> Invalid</div>
<div class="p-empty">Invalid <img class="value" alt=""> Invalid</div>
<div class="p-missing">Invalid <img class="value"> Invalid</div>
</div>
<div class="h-test-area">
<div class="p-filled">Invalid <area class="value" alt="Valid"> Invalid</div>
<div class="p-filled-space">Invalid <area class="value" alt=" No Trim "> Invalid</div>
<div class="p-empty">Invalid <area class="value" alt=""> Invalid</div>
<div class="p-missing">Invalid <area class="value"> Invalid</div>
</div>
<div class="h-test-data">
<div class="p-filled">Invalid <data class="value" value="Valid">Invalid</data> Invalid</div>
<div class="p-filled-space">Invalid <data class="value" value=" No Trim ">Invalid</data> Invalid</div>
<div class="p-empty">Invalid <data class="value" value="">Invalid</data> Invalid</div>
<div class="p-missing">Invalid <data class="value">Valid</data> Invalid</div>
</div>
<div class="h-test-abbr">
<div class="p-filled">Invalid <abbr class="value" title="Valid">Invalid</abbr> Invalid</div>
<div class="p-filled-space">Invalid <abbr class="value" title=" No Trim ">Invalid</abbr> Invalid</div>
<div class="p-empty">Invalid <abbr class="value" title="">Invalid</abbr> Invalid</div>
<div class="p-missing">Invalid <abbr class="value">Valid</abbr> Invalid</div>
</div>
<!-- The datetime attribute on these elements only applies to date parsing, and not other VCP parsing -->
<div class="h-test-time">
<div class="p-name">NotPartOfTest</div>
<div class="p-filled">Invalid <time class="value" datetime="Invalid">Valid</time> Invalid</div>
<div class="p-empty">Invalid <time class="value" datetime="">Valid</time> Invalid</div>
<div class="p-missing">Invalid <time class="value">Valid</time> Invalid</div>
</div>
<div class="h-test-ins">
<div class="p-name">NotPartOfTest</div>
<div class="p-filled">Invalid <ins class="value" datetime="Invalid">Valid</ins> Invalid</div>
<div class="p-empty">Invalid <ins class="value" datetime="">Valid</ins> Invalid</div>
<div class="p-missing">Invalid <ins class="value">Valid</ins> Invalid</div>
</div>
<div class="h-test-del">
<div class="p-name">NotPartOfTest</div>
<div class="p-filled">Invalid <del class="value" datetime="Invalid">Valid</del> Invalid</div>
<div class="p-empty">Invalid <del class="value" datetime="">Valid</del> Invalid</div>
<div class="p-missing">Invalid <del class="value">Valid</del> Invalid</div>
</div>
<!-- This test checks Value Class Pattern execution order within p-property processing -->
<div class="h-test-override">
<abbr class="p-abbr" title="Invalid">Invalid <span class="value">Valid</span> Invalid</abbr>
<data class="p-data" value="Invalid">Invalid <span class="value">Valid</span> Invalid</data>
</div>
{"csharp":{"url":"https://www.nuget.org/packages/Microformats","version":"1.1.2"},"elixir":{"url":"https://hex.pm/packages/microformats2","version":"1.0.1"},"go":{"url":"https://pkg.go.dev/willnorris.com/go/microformats","version":"1.2.0"},"js":{"url":"https://www.npmjs.com/package/microformats-parser","version":"2.0.4"},"js-shiv":{"url":"https://www.npmjs.com/package/microformat-node","version":"2.0.4"},"perl":{"url":"https://metacpan.org/pod/Web::Microformats2","version":"0.511"},"php":{"url":"https://packagist.org/packages/mf2/mf2","version":"0.5.0"},"php-mensbeam":{"url":"https://packagist.org/packages/mensbeam/microformats","version":"0.2.1"},"python":{"url":"https://pypi.org/project/mf2py/","version":"2.0.1"},"python-robida":{"url":"https://pypi.org/project/mf2dom/","version":"0.2.0"},"ruby":{"url":"https://rubygems.org/gems/microformats","version":"4.5.0"},"ruby-micromicro":{"url":"https://rubygems.org/gems/micromicro","version":"6.0.0"},"rust":{"url":"https://crates.io/crates/microformats","version":"0.19.0"}}
{
"items": [
{
"children": [
{
"properties": {
"name": [
"Valid"
]
},
"type": [
"h-test-child"
]
},
{
"properties": {
"name": [
"NotPartOfTest"
]
},
"type": [
"h-test-child"
]
}
],
"properties": {
"deep": [
"Va"
],
"double": [
"Valid"
],
"inside-microformat": [
"Valid"
],
"inside-property": [
"Valid"
],
"is-microformat": [
"Valid"
],
"is-property": [
"Valid"
],
"nested": [
"Valid"
],
"not-part-of-test": [
"Valid",
"NotPartOfTest"
],
"other-classes": [
"Valid"
],
"quintuple": [
"Valid"
],
"self": [
"Valid"
],
"single": [
"Valid"
]
},
"type": [
"h-test-value"
]
},
{
"properties": {
"empty": [
""
],
"filled": [
"Valid"
],
"filled-space": [
" No Trim "
],
"missing": [
""
]
},
"type": [
"h-test-img"
]
},
{
"properties": {
"empty": [
""
],
"filled": [
"Valid"
],
"filled-space": [
" No Trim "
],
"missing": [
""
]
},
"type": [
"h-test-area"
]
},
{
"properties": {
"empty": [
""
],
"filled": [
"Valid"
],
"filled-space": [
" No Trim "
],
"missing": [
"Valid"
]
},
"type": [
"h-test-data"
]
},
{
"properties": {
"empty": [
""
],
"filled": [
"Valid"
],
"filled-space": [
" No Trim "
],
"missing": [
"Valid"
]
},
"type": [
"h-test-abbr"
]
},
{
"properties": {
"empty": [
"Valid"
],
"filled": [
"Valid"
],
"missing": [
"Valid"
],
"name": [
"NotPartOfTest"
]
},
"type": [
"h-test-time"
]
},
{
"properties": {
"empty": [
"Valid"
],
"filled": [
"Valid"
],
"missing": [
"Valid"
],
"name": [
"NotPartOfTest"
]
},
"type": [
"h-test-ins"
]
},
{
"properties": {
"empty": [
"Valid"
],
"filled": [
"Valid"
],
"missing": [
"Valid"
],
"name": [
"NotPartOfTest"
]
},
"type": [
"h-test-del"
]
},
{
"properties": {
"abbr": [
"Valid"
],
"data": [
"Valid"
]
},
"type": [
"h-test-override"
]
}
],
"rel-urls": {},
"rels": {}
}
{
"items": [
{
"children": [
{
"properties": {
"name": [
"Valid"
]
},
"type": [
"h-test-child"
]
},
{
"properties": {
"name": [
"NotPartOfTest"
]
},
"type": [
"h-test-child"
]
}
],
"properties": {
"deep": [
"Valid"
],
"double": [
"Valid"
],
"inside-microformat": [
"ValidNotPartOfTest"
],
"inside-property": [
"ValidNotPartOfTest"
],
"is-microformat": [
"Valid"
],
"is-property": [
"Valid"
],
"nested": [
"Validli"
],
"not-part-of-test": [
"Valid",
"NotPartOfTest"
],
"other-classes": [
"Valid"
],
"quintuple": [
"Valid"
],
"self": [
"Valid"
],
"single": [
"Valid"
]
},
"type": [
"h-test-value"
]
},
{
"properties": {
"empty": [
""
],
"filled": [
"Valid"
],
"filled-space": [
"No Trim"
],
"missing": [
""
]
},
"type": [
"h-test-img"
]
},
{
"properties": {
"empty": [
""
],
"filled": [
""
],
"filled-space": [
""
],
"missing": [
""
]
},
"type": [
"h-test-area"
]
},
{
"properties": {
"empty": [
""
],
"filled": [
"Valid"
],
"filled-space": [
"No Trim"
],
"missing": [
"Valid"
]
},
"type": [
"h-test-data"
]
},
{
"properties": {
"empty": [
""
],
"filled": [
"Valid"
],
"filled-space": [
"No Trim"
],
"missing": [
"Valid"
]
},
"type": [
"h-test-abbr"
]
},
{
"properties": {
"empty": [
"Valid"
],
"filled": [
"Valid"
],
"missing": [
"Valid"
],
"name": [
"NotPartOfTest"
]
},
"type": [
"h-test-time"
]
},
{
"properties": {
"empty": [
"Valid"
],
"filled": [
"Valid"
],
"missing": [
"Valid"
],
"name": [
"NotPartOfTest"
]
},
"type": [
"h-test-ins"
]
},
{
"properties": {
"empty": [
"Valid"
],
"filled": [
"Valid"
],
"missing": [
"Valid"
],
"name": [
"NotPartOfTest"
]
},
"type": [
"h-test-del"
]
},
{
"properties": {
"abbr": [
"Valid"
],
"data": [
"Valid"
]
},
"type": [
"h-test-override"
]
}
],
"rel-urls": {},
"rels": {}
}
{
"items": [
{
"children": [
{
"properties": {
"name": [
"Valid"
]
},
"type": [
"h-test-child"
]
},
{
"properties": {
"name": [
"NotPartOfTest"
]
},
"type": [
"h-test-child"
]
}
],
"properties": {
"deep": [
"Va"
],
"double": [
"Valid"
],
"inside-microformat": [
"Valid"
],
"inside-property": [
"Valid"
],
"is-microformat": [
"Valid"
],
"is-property": [
"Valid"
],
"nested": [
"Valid"
],
"not-part-of-test": [
"Valid",
"NotPartOfTest"
],
"other-classes": [
"Valid"
],
"quintuple": [
"Valid"
],
"self": [
"Valid"
],
"single": [
"Valid"
]
},
"type": [
"h-test-value"
]
},
{
"properties": {
"empty": [
""
],
"filled": [
"Valid"
],
"filled-space": [
" No Trim "
],
"missing": [
""
]
},
"type": [
"h-test-img"
]
},
{
"properties": {
"empty": [
""
],
"filled": [
"Valid"
],
"filled-space": [
" No Trim "
],
"missing": [
""
]
},
"type": [
"h-test-area"
]
},
{
"properties": {
"empty": [
""
],
"filled": [
"Valid"
],
"filled-space": [
" No Trim "
],
"missing": [
"Valid"
]
},
"type": [
"h-test-data"
]
},
{
"properties": {
"empty": [
""
],
"filled": [
"Valid"
],
"filled-space": [
" No Trim "
],
"missing": [
"Valid"
]
},
"type": [
"h-test-abbr"
]
},
{
"properties": {
"empty": [
"Valid"
],
"filled": [
"Valid"
],
"missing": [
"Valid"
],
"name": [
"NotPartOfTest"
]
},
"type": [
"h-test-time"
]
},
{
"properties": {
"empty": [
"Valid"
],
"filled": [
"Valid"
],
"missing": [
"Valid"
],
"name": [
"NotPartOfTest"
]
},
"type": [
"h-test-ins"
]
},
{
"properties": {
"empty": [
"Valid"
],
"filled": [
"Valid"
],
"missing": [
"Valid"
],
"name": [
"NotPartOfTest"
]
},
"type": [
"h-test-del"
]
},
{
"properties": {
"abbr": [
"Valid"
],
"data": [
"Valid"
]
},
"type": [
"h-test-override"
]
}
],
"rel-urls": {},
"rels": {}
}
{
"items": [
{
"children": [
{
"properties": {
"name": [
"Valid"
]
},
"type": [
"h-test-child"
]
},
{
"properties": {
"name": [
"NotPartOfTest"
]
},
"type": [
"h-test-child"
]
}
],
"properties": {
"deep": [
"Valid"
],
"double": [
"Valid"
],
"inside-microformat": [
"Valid"
],
"inside-property": [
"ValidNotPartOfTest"
],
"is-microformat": [
"Valid"
],
"is-property": [
"Valid"
],
"nested": [
"Validli"
],
"not-part-of-test": [
"Valid",
"NotPartOfTest"
],
"other-classes": [
"Valid"
],
"quintuple": [
"Valid"
],
"self": [
"Valid"
],
"single": [
"Valid"
]
},
"type": [
"h-test-value"
]
},
{
"properties": {
"empty": [
""
],
"filled": [
""
],
"filled-space": [
""
],
"missing": [
""
]
},
"type": [
"h-test-img"
]
},
{
"properties": {
"empty": [
""
],
"filled": [
""
],
"filled-space": [
""
],
"missing": [
""
]
},
"type": [
"h-test-area"
]
},
{
"properties": {
"empty": [
"Invalid"
],
"filled": [
"Invalid"
],
"filled-space": [
"Invalid"
],
"missing": [
"Valid"
]
},
"type": [
"h-test-data"
]
},
{
"properties": {
"empty": [
"Invalid"
],
"filled": [
"Invalid"
],
"filled-space": [
"Invalid"
],
"missing": [
"Valid"
]
},
"type": [
"h-test-abbr"
]
},
{
"properties": {
"empty": [
"Valid"
],
"filled": [
"Valid"
],
"missing": [
"Valid"
],
"name": [
"NotPartOfTest"
]
},
"type": [
"h-test-time"
]
},
{
"properties": {
"empty": [
"Valid"
],
"filled": [
"Valid"
],
"missing": [
"Valid"
],
"name": [
"NotPartOfTest"
]
},
"type": [
"h-test-ins"
]
},
{
"properties": {
"empty": [
"Valid"
],
"filled": [
"Valid"
],
"missing": [
"Valid"
],
"name": [
"NotPartOfTest"
]
},
"type": [
"h-test-del"
]
},
{
"properties": {
"abbr": [
"Valid"
],
"data": [
"Valid"
]
},
"type": [
"h-test-override"
]
}
],
"rel-urls": {},
"rels": {}
}
{
"items": [
{
"children": [
{
"properties": {
"name": [
"Valid"
]
},
"type": [
"h-test-child"
],
"value": "Valid"
},
{
"properties": {
"name": [
"NotPartOfTest"
]
},
"type": [
"h-test-child"
],
"value": "NotPartOfTest"
}
],
"properties": {
"deep": [
"Va"
],
"double": [
"Valid"
],
"inside-microformat": [
"Valid"
],
"inside-property": [
"Valid"
],
"is-microformat": [
"Valid"
],
"is-property": [
"Valid"
],
"name": [
"Invalid Valid Invalid\n Invalid Va Invalid lid\n Invalid V a l i d Invalid\n Invalid Valid Invalid\n Invalid Valid Invalid\n Invalid Valid Invalid\n Invalid Va Invalid Invalid lid Invalid Invalid Invalid\n Invalid Valid Invalid\n Invalid Valid Invalid\n \n Invalid\n Valid\n NotPartOfTest\n Invalid\n \n \n \n Invalid\n Valid\n NotPartOfTest\n Invalid"
],
"nested": [
"Valid"
],
"not-part-of-test": [
"Valid",
"NotPartOfTest"
],
"other-classes": [
"Valid"
],
"quintuple": [
"Valid"
],
"self": [
"Valid"
],
"single": [
"Valid"
]
},
"type": [
"h-test-value"
]
},
{
"properties": {
"empty": [
"Invalid Invalid"
],
"filled": [
"Valid"
],
"filled-space": [
"No Trim"
],
"missing": [
"Invalid Invalid"
],
"name": [
"Invalid Invalid\n Invalid Invalid\n Invalid Invalid\n Invalid Invalid"
]
},
"type": [
"h-test-img"
]
},
{
"properties": {
"empty": [
"Invalid Invalid"
],
"filled": [
"Valid"
],
"filled-space": [
"No Trim"
],
"missing": [
"Invalid Invalid"
],
"name": [
"Invalid Invalid\n Invalid Invalid\n Invalid Invalid\n Invalid Invalid"
]
},
"type": [
"h-test-area"
]
},
{
"properties": {
"empty": [
"Invalid"
],
"filled": [
"Valid"
],
"filled-space": [
"No Trim"
],
"missing": [
"Valid"
],
"name": [
"Invalid Invalid Invalid\n Invalid Invalid Invalid\n Invalid Invalid Invalid\n Invalid Valid Invalid"
]
},
"type": [
"h-test-data"
]
},
{
"properties": {
"empty": [
"Invalid"
],
"filled": [
"Valid"
],
"filled-space": [
"No Trim"
],
"missing": [
"Valid"
],
"name": [
"Invalid Invalid Invalid\n Invalid Invalid Invalid\n Invalid Invalid Invalid\n Invalid Valid Invalid"
]
},
"type": [
"h-test-abbr"
]
},
{
"properties": {
"empty": [
"Valid"
],
"filled": [
"Valid"
],
"missing": [
"Valid"
],
"name": [
"NotPartOfTest"
]
},
"type": [
"h-test-time"
]
},
{
"properties": {
"empty": [
"Valid"
],
"filled": [
"Valid"
],
"missing": [
"Valid"
],
"name": [
"NotPartOfTest"
]
},
"type": [
"h-test-ins"
]
},
{
"properties": {
"empty": [
"Valid"
],
"filled": [
"Valid"
],
"missing": [
"Valid"
],
"name": [
"NotPartOfTest"
]
},
"type": [
"h-test-del"
]
},
{
"properties": {
"abbr": [
"Valid"
],
"data": [
"Valid"
],
"name": [
"Invalid"
]
},
"type": [
"h-test-override"
]
}
],
"rel-urls": {},
"rels": {}
}
{
"items": [
{
"children": [
{
"properties": {
"name": [
"Valid"
]
},
"type": [
"h-test-child"
]
},
{
"properties": {
"name": [
"NotPartOfTest"
]
},
"type": [
"h-test-child"
]
}
],
"properties": {
"deep": [
"Valid"
],
"double": [
"Valid"
],
"inside-microformat": [
"ValidNotPartOfTest"
],
"inside-property": [
"ValidNotPartOfTest"
],
"is-microformat": [
"Valid"
],
"is-property": [
"Valid"
],
"nested": [
"Valid"
],
"not-part-of-test": [
"Valid",
"NotPartOfTest"
],
"other-classes": [
"Valid"
],
"quintuple": [
"Valid"
],
"self": [
"Invalid Valid Invalid"
],
"single": [
"Valid"
]
},
"type": [
"h-test-value"
]
},
{
"properties": {
"empty": [
""
],
"filled": [
""
],
"filled-space": [
""
],
"missing": [
""
]
},
"type": [
"h-test-img"
]
},
{
"properties": {
"empty": [
""
],
"filled": [
""
],
"filled-space": [
""
],
"missing": [
""
]
},
"type": [
"h-test-area"
]
},
{
"properties": {
"empty": [
"Invalid"
],
"filled": [
"Invalid"
],
"filled-space": [
"Invalid"
],
"missing": [
"Valid"
]
},
"type": [
"h-test-data"
]
},
{
"properties": {
"empty": [
"Invalid"
],
"filled": [
"Invalid"
],
"filled-space": [
"Invalid"
],
"missing": [
"Valid"
]
},
"type": [
"h-test-abbr"
]
},
{
"properties": {
"empty": [
""
],
"filled": [
"Invalid"
],
"missing": [
"Valid"
],
"name": [
"NotPartOfTest"
]
},
"type": [
"h-test-time"
]
},
{
"properties": {
"empty": [
""
],
"filled": [
"Invalid"
],
"missing": [
"Valid"
],
"name": [
"NotPartOfTest"
]
},
"type": [
"h-test-ins"
]
},
{
"properties": {
"empty": [
""
],
"filled": [
"Invalid"
],
"missing": [
"Valid"
],
"name": [
"NotPartOfTest"
]
},
"type": [
"h-test-del"
]
},
{
"properties": {
"abbr": [
"Valid"
],
"data": [
"Valid"
]
},
"type": [
"h-test-override"
]
}
],
"rel-urls": {},
"rels": {}
}
{
"items": [
{
"children": [
{
"properties": {
"name": [
"Valid"
]
},
"type": [
"h-test-child"
]
},
{
"properties": {
"name": [
"NotPartOfTest"
]
},
"type": [
"h-test-child"
]
}
],
"properties": {
"deep": [
"Va"
],
"double": [
"Valid"
],
"inside-microformat": [
"Valid"
],
"inside-property": [
"Valid"
],
"is-microformat": [
"Valid"
],
"is-property": [
"Valid"
],
"nested": [
"Valid"
],
"not-part-of-test": [
"Valid",
"NotPartOfTest"
],
"other-classes": [
"Valid"
],
"quintuple": [
"Valid"
],
"self": [
"Valid"
],
"single": [
"Valid"
]
},
"type": [
"h-test-value"
]
},
{
"properties": {
"empty": [
""
],
"filled": [
""
],
"filled-space": [
""
],
"missing": [
""
]
},
"type": [
"h-test-img"
]
},
{
"properties": {
"empty": [
""
],
"filled": [
""
],
"filled-space": [
""
],
"missing": [
""
]
},
"type": [
"h-test-area"
]
},
{
"properties": {
"empty": [
"Invalid"
],
"filled": [
"Invalid"
],
"filled-space": [
"Invalid"
],
"missing": [
"Valid"
]
},
"type": [
"h-test-data"
]
},
{
"properties": {
"empty": [
"Invalid"
],
"filled": [
"Invalid"
],
"filled-space": [
"Invalid"
],
"missing": [
"Valid"
]
},
"type": [
"h-test-abbr"
]
},
{
"properties": {
"empty": [
"Valid"
],
"filled": [
"Valid"
],
"missing": [
"Valid"
],
"name": [
"NotPartOfTest"
]
},
"type": [
"h-test-time"
]
},
{
"properties": {
"empty": [
"Valid"
],
"filled": [
"Valid"
],
"missing": [
"Valid"
],
"name": [
"NotPartOfTest"
]
},
"type": [
"h-test-ins"
]
},
{
"properties": {
"empty": [
"Valid"
],
"filled": [
"Valid"
],
"missing": [
"Valid"
],
"name": [
"NotPartOfTest"
]
},
"type": [
"h-test-del"
]
},
{
"properties": {
"abbr": [
"Valid"
],
"data": [
"Valid"
]
},
"type": [
"h-test-override"
]
}
],
"rel-urls": {},
"rels": {}
}
{
"items": [
{
"children": [
{
"properties": {
"name": [
"Valid"
]
},
"type": [
"h-test-child"
]
},
{
"properties": {
"name": [
"NotPartOfTest"
]
},
"type": [
"h-test-child"
]
}
],
"properties": {
"deep": [
"Valid"
],
"double": [
"Valid"
],
"inside-microformat": [
"Valid"
],
"inside-property": [
"Valid"
],
"is-microformat": [
"Valid"
],
"is-property": [
"Valid"
],
"nested": [
"Valid"
],
"not-part-of-test": [
"Valid",
"NotPartOfTest"
],
"other-classes": [
"Valid"
],
"quintuple": [
"Valid"
],
"self": [
"Valid"
],
"single": [
"Valid"
]
},
"type": [
"h-test-value"
]
},
{
"properties": {
"empty": [
""
],
"filled": [
"Valid"
],
"filled-space": [
" No Trim "
],
"missing": [
""
]
},
"type": [
"h-test-img"
]
},
{
"properties": {
"empty": [
""
],
"filled": [
"Valid"
],
"filled-space": [
" No Trim "
],
"missing": [
""
]
},
"type": [
"h-test-area"
]
},
{
"properties": {
"empty": [
""
],
"filled": [
"Valid"
],
"filled-space": [
" No Trim "
],
"missing": [
"Valid"
]
},
"type": [
"h-test-data"
]
},
{
"properties": {
"empty": [
""
],
"filled": [
"Valid"
],
"filled-space": [
" No Trim "
],
"missing": [
"Valid"
]
},
"type": [
"h-test-abbr"
]
},
{
"properties": {
"empty": [
"Valid"
],
"filled": [
"Valid"
],
"missing": [
"Valid"
],
"name": [
"NotPartOfTest"
]
},
"type": [
"h-test-time"
]
},
{
"properties": {
"empty": [
"Valid"
],
"filled": [
"Valid"
],
"missing": [
"Valid"
],
"name": [
"NotPartOfTest"
]
},
"type": [
"h-test-ins"
]
},
{
"properties": {
"empty": [
"Valid"
],
"filled": [
"Valid"
],
"missing": [
"Valid"
],
"name": [
"NotPartOfTest"
]
},
"type": [
"h-test-del"
]
},
{
"properties": {
"abbr": [
"Valid"
],
"data": [
"Valid"
]
},
"type": [
"h-test-override"
]
}
],
"rel-urls": {},
"rels": {}
}
{
"items": [
{
"children": [
{
"properties": {
"name": [
"Valid"
]
},
"type": [
"h-test-child"
]
},
{
"properties": {
"name": [
"NotPartOfTest"
]
},
"type": [
"h-test-child"
]
}
],
"properties": {
"deep": [
"Va"
],
"double": [
"Valid"
],
"inside-microformat": [
"Valid"
],
"inside-property": [
"Valid"
],
"is-microformat": [
"Valid"
],
"is-property": [
"Valid"
],
"nested": [
"Valid"
],
"not-part-of-test": [
"Valid",
"NotPartOfTest"
],
"other-classes": [
"Valid"
],
"quintuple": [
"Valid"
],
"self": [
"Valid"
],
"single": [
"Valid"
]
},
"type": [
"h-test-value"
]
},
{
"properties": {
"empty": [
""
],
"filled": [
""
],
"filled-space": [
""
],
"missing": [
""
]
},
"type": [
"h-test-img"
]
},
{
"properties": {
"empty": [
""
],
"filled": [
""
],
"filled-space": [
""
],
"missing": [
""
]
},
"type": [
"h-test-area"
]
},
{
"properties": {
"empty": [
"Invalid"
],
"filled": [
"Invalid"
],
"filled-space": [
"Invalid"
],
"missing": [
"Valid"
]
},
"type": [
"h-test-data"
]
},
{
"properties": {
"empty": [
"Invalid"
],
"filled": [
"Invalid"
],
"filled-space": [
"Invalid"
],
"missing": [
"Valid"
]
},
"type": [
"h-test-abbr"
]
},
{
"properties": {
"empty": [
"Valid"
],
"filled": [
"Valid"
],
"missing": [
"Valid"
],
"name": [
"NotPartOfTest"
]
},
"type": [
"h-test-time"
]
},
{
"properties": {
"empty": [
"Valid"
],
"filled": [
"Valid"
],
"missing": [
"Valid"
],
"name": [
"NotPartOfTest"
]
},
"type": [
"h-test-ins"
]
},
{
"properties": {
"empty": [
"Valid"
],
"filled": [
"Valid"
],
"missing": [
"Valid"
],
"name": [
"NotPartOfTest"
]
},
"type": [
"h-test-del"
]
},
{
"properties": {
"abbr": [
"Valid"
],
"data": [
"Valid"
]
},
"type": [
"h-test-override"
]
}
],
"rel-urls": {},
"rels": {}
}
{
"items": [
{
"children": [
{
"properties": {
"name": [
"Valid"
]
},
"type": [
"h-test-child"
]
},
{
"properties": {
"name": [
"NotPartOfTest"
]
},
"type": [
"h-test-child"
]
}
],
"properties": {
"deep": [
"Valid"
],
"double": [
"Valid"
],
"inside-microformat": [
"Valid"
],
"inside-property": [
"Valid"
],
"is-microformat": [
"Valid"
],
"is-property": [
"Valid"
],
"nested": [
"Valid"
],
"not-part-of-test": [
"Valid",
"NotPartOfTest"
],
"other-classes": [
"Valid"
],
"quintuple": [
"Valid"
],
"self": [
"Valid"
],
"single": [
"Valid"
]
},
"type": [
"h-test-value"
]
},
{
"properties": {
"empty": [
""
],
"filled": [
"Valid"
],
"filled-space": [
" No Trim "
],
"missing": [
""
]
},
"type": [
"h-test-img"
]
},
{
"properties": {
"empty": [
""
],
"filled": [
"Valid"
],
"filled-space": [
" No Trim "
],
"missing": [
""
]
},
"type": [
"h-test-area"
]
},
{
"properties": {
"empty": [
""
],
"filled": [
"Valid"
],
"filled-space": [
" No Trim "
],
"missing": [
"Valid"
]
},
"type": [
"h-test-data"
]
},
{
"properties": {
"empty": [
""
],
"filled": [
"Valid"
],
"filled-space": [
" No Trim "
],
"missing": [
"Valid"
]
},
"type": [
"h-test-abbr"
]
},
{
"properties": {
"empty": [
"Valid"
],
"filled": [
"Valid"
],
"missing": [
"Valid"
],
"name": [
"NotPartOfTest"
]
},
"type": [
"h-test-time"
]
},
{
"properties": {
"empty": [
"Valid"
],
"filled": [
"Valid"
],
"missing": [
"Valid"
],
"name": [
"NotPartOfTest"
]
},
"type": [
"h-test-ins"
]
},
{
"properties": {
"empty": [
"Valid"
],
"filled": [
"Valid"
],
"missing": [
"Valid"
],
"name": [
"NotPartOfTest"
]
},
"type": [
"h-test-del"
]
},
{
"properties": {
"abbr": [
"Valid"
],
"data": [
"Valid"
]
},
"type": [
"h-test-override"
]
}
],
"rel-urls": {},
"rels": {}
}
/home/gem/gems/microformats-4.5.0/lib/microformats/property_parser.rb:81:in 'Microformats::PropertyParser#parse_element': undefined method 'value' for nil (NoMethodError)
element.attribute('alt').value.strip
^^^^^^
from /home/gem/gems/microformats-4.5.0/lib/microformats/parser_core.rb:21:in 'Microformats::ParserCore#parse_node'
from /home/gem/gems/microformats-4.5.0/lib/microformats/parser_core.rb:27:in 'block in Microformats::ParserCore#parse_nodeset'
from /home/gem/gems/nokogiri-1.19.3-x86_64-linux-musl/lib/nokogiri/xml/node_set.rb:237:in 'block in Nokogiri::XML::NodeSet#each'
from /home/gem/gems/nokogiri-1.19.3-x86_64-linux-musl/lib/nokogiri/xml/node_set.rb:236:in 'Integer#upto'
from /home/gem/gems/nokogiri-1.19.3-x86_64-linux-musl/lib/nokogiri/xml/node_set.rb:236:in 'Nokogiri::XML::NodeSet#each'
from /home/gem/gems/microformats-4.5.0/lib/microformats/parser_core.rb:26:in 'Microformats::ParserCore#parse_nodeset'
from /home/gem/gems/microformats-4.5.0/lib/microformats/parser_core.rb:19:in 'Microformats::ParserCore#parse_node'
from /home/gem/gems/microformats-4.5.0/lib/microformats/property_parser.rb:70:in 'Microformats::PropertyParser#parse_value_class_pattern'
from /home/gem/gems/microformats-4.5.0/lib/microformats/property_parser.rb:12:in 'Microformats::PropertyParser#parse'
from /home/gem/gems/microformats-4.5.0/lib/microformats/format_parser.rb:101:in 'block in Microformats::FormatParser#parse_element'
from /home/gem/gems/microformats-4.5.0/lib/microformats/format_parser.rb:97:in 'Array#each'
from /home/gem/gems/microformats-4.5.0/lib/microformats/format_parser.rb:97:in 'Microformats::FormatParser#parse_element'
from /home/gem/gems/microformats-4.5.0/lib/microformats/parser_core.rb:21:in 'Microformats::ParserCore#parse_node'
from /home/gem/gems/microformats-4.5.0/lib/microformats/parser_core.rb:27:in 'block in Microformats::ParserCore#parse_nodeset'
from /home/gem/gems/nokogiri-1.19.3-x86_64-linux-musl/lib/nokogiri/xml/node_set.rb:237:in 'block in Nokogiri::XML::NodeSet#each'
from /home/gem/gems/nokogiri-1.19.3-x86_64-linux-musl/lib/nokogiri/xml/node_set.rb:236:in 'Integer#upto'
from /home/gem/gems/nokogiri-1.19.3-x86_64-linux-musl/lib/nokogiri/xml/node_set.rb:236:in 'Nokogiri::XML::NodeSet#each'
from /home/gem/gems/microformats-4.5.0/lib/microformats/parser_core.rb:26:in 'Microformats::ParserCore#parse_nodeset'
from /home/gem/gems/microformats-4.5.0/lib/microformats/parser_core.rb:19:in 'Microformats::ParserCore#parse_node'
from /home/gem/gems/microformats-4.5.0/lib/microformats/format_parser.rb:19:in 'Microformats::FormatParser#parse'
from /home/gem/gems/microformats-4.5.0/lib/microformats/parser.rb:72:in 'Microformats::Parser#parse_element'
from /home/gem/gems/microformats-4.5.0/lib/microformats/parser_core.rb:21:in 'Microformats::ParserCore#parse_node'
from /home/gem/gems/microformats-4.5.0/lib/microformats/parser_core.rb:27:in 'block in Microformats::ParserCore#parse_nodeset'
from /home/gem/gems/nokogiri-1.19.3-x86_64-linux-musl/lib/nokogiri/xml/node_set.rb:237:in 'block in Nokogiri::XML::NodeSet#each'
from /home/gem/gems/nokogiri-1.19.3-x86_64-linux-musl/lib/nokogiri/xml/node_set.rb:236:in 'Integer#upto'
from /home/gem/gems/nokogiri-1.19.3-x86_64-linux-musl/lib/nokogiri/xml/node_set.rb:236:in 'Nokogiri::XML::NodeSet#each'
from /home/gem/gems/microformats-4.5.0/lib/microformats/parser_core.rb:26:in 'Microformats::ParserCore#parse_nodeset'
from /home/gem/gems/microformats-4.5.0/lib/microformats/parser.rb:74:in 'Microformats::Parser#parse_element'
from /home/gem/gems/microformats-4.5.0/lib/microformats/parser_core.rb:21:in 'Microformats::ParserCore#parse_node'
from /home/gem/gems/microformats-4.5.0/lib/microformats/parser_core.rb:27:in 'block in Microformats::ParserCore#parse_nodeset'
from /home/gem/gems/nokogiri-1.19.3-x86_64-linux-musl/lib/nokogiri/xml/node_set.rb:237:in 'block in Nokogiri::XML::NodeSet#each'
from /home/gem/gems/nokogiri-1.19.3-x86_64-linux-musl/lib/nokogiri/xml/node_set.rb:236:in 'Integer#upto'
from /home/gem/gems/nokogiri-1.19.3-x86_64-linux-musl/lib/nokogiri/xml/node_set.rb:236:in 'Nokogiri::XML::NodeSet#each'
from /home/gem/gems/microformats-4.5.0/lib/microformats/parser_core.rb:26:in 'Microformats::ParserCore#parse_nodeset'
from /home/gem/gems/microformats-4.5.0/lib/microformats/parser.rb:74:in 'Microformats::Parser#parse_element'
from /home/gem/gems/microformats-4.5.0/lib/microformats/parser_core.rb:21:in 'Microformats::ParserCore#parse_node'
from /home/gem/gems/microformats-4.5.0/lib/microformats/parser_core.rb:27:in 'block in Microformats::ParserCore#parse_nodeset'
from /home/gem/gems/nokogiri-1.19.3-x86_64-linux-musl/lib/nokogiri/xml/node_set.rb:237:in 'block in Nokogiri::XML::NodeSet#each'
from /home/gem/gems/nokogiri-1.19.3-x86_64-linux-musl/lib/nokogiri/xml/node_set.rb:236:in 'Integer#upto'
from /home/gem/gems/nokogiri-1.19.3-x86_64-linux-musl/lib/nokogiri/xml/node_set.rb:236:in 'Nokogiri::XML::NodeSet#each'
from /home/gem/gems/microformats-4.5.0/lib/microformats/parser_core.rb:26:in 'Microformats::ParserCore#parse_nodeset'
from /home/gem/gems/microformats-4.5.0/lib/microformats/parser_core.rb:19:in 'Microformats::ParserCore#parse_node'
from /home/gem/gems/microformats-4.5.0/lib/microformats/parser_core.rb:17:in 'Microformats::ParserCore#parse_node'
from /home/gem/gems/microformats-4.5.0/lib/microformats/parser.rb:37:in 'Microformats::Parser#parse'
from /home/gem/gems/microformats-4.5.0/lib/microformats.rb:20:in 'Microformats.parse'
from test-one.rb:12:in 'Object#process_html'
from test-one.rb:19:in ''
{
"items": [
{
"children": [
{
"properties": {
"name": [
"Valid"
]
},
"type": [
"h-test-child"
]
},
{
"properties": {
"name": [
"NotPartOfTest"
]
},
"type": [
"h-test-child"
]
}
],
"properties": {
"deep": [
"Valid"
],
"double": [
"Valid"
],
"inside-microformat": [
"ValidNotPartOfTest"
],
"inside-property": [
"ValidNotPartOfTest"
],
"is-microformat": [
"Valid"
],
"is-property": [
"Valid"
],
"nested": [
"Valid"
],
"not-part-of-test": [
"Valid",
"NotPartOfTest"
],
"other-classes": [
"Valid"
],
"quintuple": [
"Valid"
],
"self": [
"Invalid Valid Invalid"
],
"single": [
"Valid"
]
},
"type": [
"h-test-value"
]
},
{
"properties": {
"empty": [
"Invalid Invalid"
],
"filled": [
"Valid"
],
"filled-space": [
"No Trim"
],
"missing": [
"Invalid Invalid"
]
},
"type": [
"h-test-img"
]
},
{
"properties": {
"empty": [
"Invalid Invalid"
],
"filled": [
"Valid"
],
"filled-space": [
"No Trim"
],
"missing": [
"Invalid Invalid"
]
},
"type": [
"h-test-area"
]
},
{
"properties": {
"empty": [
"Invalid Invalid Invalid"
],
"filled": [
"Valid"
],
"filled-space": [
"No Trim"
],
"missing": [
"Valid"
]
},
"type": [
"h-test-data"
]
},
{
"properties": {
"empty": [
"Invalid Invalid Invalid"
],
"filled": [
"Valid"
],
"filled-space": [
"No Trim"
],
"missing": [
"Valid"
]
},
"type": [
"h-test-abbr"
]
},
{
"properties": {
"empty": [
"Invalid Valid Invalid"
],
"filled": [
"Invalid"
],
"missing": [
"Valid"
],
"name": [
"NotPartOfTest"
]
},
"type": [
"h-test-time"
]
},
{
"properties": {
"empty": [
"Invalid Valid Invalid"
],
"filled": [
"Invalid"
],
"missing": [
"Valid"
],
"name": [
"NotPartOfTest"
]
},
"type": [
"h-test-ins"
]
},
{
"properties": {
"empty": [
"Invalid Valid Invalid"
],
"filled": [
"Invalid"
],
"missing": [
"Valid"
],
"name": [
"NotPartOfTest"
]
},
"type": [
"h-test-del"
]
},
{
"properties": {
"abbr": [
"Valid"
],
"data": [
"Valid"
]
},
"type": [
"h-test-override"
]
}
],
"rel-urls": {},
"rels": {}
}
{
"items": [
{
"children": [
{
"properties": {
"name": [
"Valid"
]
},
"type": [
"h-test-child"
]
},
{
"properties": {
"name": [
"NotPartOfTest"
]
},
"type": [
"h-test-child"
]
}
],
"properties": {
"deep": [
"Valid"
],
"double": [
"Valid"
],
"inside-microformat": [
"ValidNotPartOfTest"
],
"inside-property": [
"ValidNotPartOfTest"
],
"is-microformat": [
"Valid"
],
"is-property": [
"Valid"
],
"nested": [
"Valid"
],
"not-part-of-test": [
"Valid",
"NotPartOfTest"
],
"other-classes": [
"Valid"
],
"quintuple": [
"Valid"
],
"self": [
"Invalid Valid Invalid"
],
"single": [
"Valid"
]
},
"type": [
"h-test-value"
]
},
{
"properties": {
"empty": [
"Invalid Invalid"
],
"filled": [
"Valid"
],
"filled-space": [
"No Trim"
],
"missing": [
"Invalid Invalid"
]
},
"type": [
"h-test-img"
]
},
{
"properties": {
"empty": [
"Invalid Invalid"
],
"filled": [
"Valid"
],
"filled-space": [
"No Trim"
],
"missing": [
"Invalid Invalid"
]
},
"type": [
"h-test-area"
]
},
{
"properties": {
"empty": [
"Invalid"
],
"filled": [
"Valid"
],
"filled-space": [
"No Trim"
],
"missing": [
"Valid"
]
},
"type": [
"h-test-data"
]
},
{
"properties": {
"empty": [
"Invalid"
],
"filled": [
"Valid"
],
"filled-space": [
"No Trim"
],
"missing": [
"Valid"
]
},
"type": [
"h-test-abbr"
]
},
{
"properties": {
"empty": [
"Valid"
],
"filled": [
"Valid"
],
"missing": [
"Valid"
],
"name": [
"NotPartOfTest"
]
},
"type": [
"h-test-time"
]
},
{
"properties": {
"empty": [
"Valid"
],
"filled": [
"Valid"
],
"missing": [
"Valid"
],
"name": [
"NotPartOfTest"
]
},
"type": [
"h-test-ins"
]
},
{
"properties": {
"empty": [
"Valid"
],
"filled": [
"Valid"
],
"missing": [
"Valid"
],
"name": [
"NotPartOfTest"
]
},
"type": [
"h-test-del"
]
},
{
"properties": {
"abbr": [
"Valid"
],
"data": [
"Valid"
]
},
"type": [
"h-test-override"
]
}
],
"rel-urls": {},
"rels": {}
}