optimus icon indicating copy to clipboard operation
optimus copied to clipboard

class="value-title" parsed incorrectly, and outputted

Open Avidante opened this issue 13 years ago • 1 comments

Hi,

http://microformatique.com/optimus/?format=validate&uri=http%3A%2F%2Fwww.galaxies-reborn.com%2Farthur%2Ftest%2Ftest.html

On the above example, the Optimus parser parses incorrectly the class="value-title" information, and it outputs it twice on the NOTE field. The parsing rules here http://microformats.org/wiki/value-class-pattern#Parsing_machine-data_value-title (particularly bullet point #1) seem to suggest Optimus is wrong. My above class=value-title is not the "first non-whitespace child" of the element with class="note". So it should be ignored when parsing the "note" property and only used by parsers looking for a "lang" property. The first non-whitespace child of the above dl class=note is the dt element. When parsing the NOTE property, that dt element is the only place that Optimus should be inspecting for class=value-title.

Thank you.

Avidante avatar Feb 28 '11 17:02 Avidante

Further to this, class=value-title shouldn't be supported for the NOTE property at all. There is a limited list of properties that the pattern may be used on - mostly date/time type properties.

tobyink avatar Mar 01 '11 09:03 tobyink