microformats / microformats2-parsing

For collecting and handling issues with the microformats2 parsing specification: http://microformats.org/wiki/microformats2-parsing
14 stars 6 forks source link

vcp: innertext in value-class-pattern needs clarification #20

Open kartikprabhu opened 6 years ago

kartikprabhu commented 6 years ago

The value-class-pattern for date and time parsing refers to innertext in many places.

Currently it is not clear what innertext exactly means. It would be good to have some more direction similar to textContent specification in, for example, http://microformats.org/wiki/microformats2-parsing#parsing_a_p-_property

sknebel commented 6 years ago

If I read mf2py source correctly right now, it just uses textContent? php-mf2 uses textContent with stripped whitespace, so close to what you are proposing. I think this makes sense, replacing all instances of ìnner-text` on http://microformats.org/wiki/value-class-pattern with a definition like in the mf2-parsing-spec:

the textContent of the element after removing all leading/trailing whitespace and nested Githubissues.

  • Githubissues is a development platform for aggregating issues.