-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unclear interaction between property-microformat collapsing and implied properties #66
Comments
Since the parser has already recursed and parsed the child element at that point, I wonder if these lines should be changed to use the parsed properties from the child. This line:
Could become:
And so on for the other prefixes. I think this is what php-mf2 does in practice. I wonder what the other parsers do. A php-mf2 example with odd usage of <div class="h-feed">
<article class="p-x-articles h-entry">
<h1 class="e-name"><b>Lorem ipsum</b></h1>
</article>
</div> "type": [
"h-feed"
],
"properties": {
"x-articles": [
{
"type": [
"h-entry"
],
"properties": {
"name": [
{
"html": "<b>Lorem ipsum</b>",
"value": "Lorem ipsum"
}
]
},
"value": "Lorem ipsum"
}
]
} |
This seems pretty sensible to me, though I think your text is incorrect. I suspect you meant something more like this:
The language is a bit tortured, unfortunately, but I think it expresses the spirit of your proposal accurately.
Modifying the test so that it is instead: <div class="h-feed">
<article class="p-x-articles h-entry">
Fall through <h1 class="e-name"><b>Lorem ipsum</b></h1>
</article>
</div>
|
The general parsing rules state:
A strict reading excludes implied
name
andurl
(they are not p- or u- properties, technically) despite their being suitable values, such that the parent'sname
property here has a value ofABBA
rather thanC
as the child does:Current parser behaviour:
C
: PHP, JavaScript, Go, Rust, Haskell, RubyABBA
: PythonThe text was updated successfully, but these errors were encountered: