Closed Zegnat closed 6 years ago
Previous issue and resolution: http://microformats.org/wiki/microformats2-parsing-issues#exclude_style_elements_before_parsing
Appears might have just missed some instances in the spec update, but need to double-check and confirm. See this revision.
given what @gRegorLove found I'd say the missing pieces are:
a) specify the same for the value
-version of a e-property (which likely was missed since the html was explicitly excluded in the discussion)
b) in the section about implied name
properties, make it clear that textContent
should be postprocessed the same way as for p-
properties.
Proposed updates, which I believe are in line with the resolution:
parsing a p- property No content change, just splitting out whitespace trimming into a separate bullet point:
Original:
- else return the textContent of the element after:
- dropping any nested Githubissues.
- Githubissues is a development platform for aggregating issues.
In practice parsers are already doing this everywhere, but that is currently against the specification. I say this is a mistake in the spec and not in parsers.
When the
textContent
value is used in mf2 we specify the removal of<script>
and<style>
elements withinp-x
,u-x
, anddt-x
parsing. But do not fore-x
or impliedname
parsing.According to spec:
Results in an implied
name
ofHello beautiful person
.