include-pattern-issues
From Microformats
Include-Pattern Issues
See: A summary of issues with the include pattern (http://microformats.org/discuss/mail/microformats-dev/2006-May/000097.html).
- closed issue 2007-08-03 raised by Mike Kaply (http://www.kaply.com/weblog/)
- It needs to be explicit that the only classname on the object/etc should be include. Having specific microformat property classnames (e.g. "fn") on the object is not necessary since the premise is that the object node is REPLACED by the referenced node. This is clarified on February 12th 2008, line 27 (http://microformats.org/wiki?title=include-pattern&diff=0&oldid=25677)
- open issue! 2008-02-21 raised by TobyInk
It's very easy for inclusions to end up as an infinite loop. For example:
<div class="fn" id="foo"><a class="include" href="#foo">include</a></div>
Assuming that we want to allow multi-level inclusion (e.g. an hcard could include an "adr" from elsewhere on the page, which in turn might include a "locality" from somewhere else), loops are hard to avoid. In my own parser, I assume a maximum number of iterations over the inclusion function. This level is set higher for more complex microformats than the more simple ones -- for example an hCard is allowed up to six iterations, whereas a geo is only allowed up to two.
Template
Please use this format (copy and paste this to the end of the list to add your issues; replace ~~~ with an external link if preferred) to report issues or feedback:
<div class="vevent">
* {{OpenIssue}} <span class="summary vcard"><span class="dtstart">2008-MM-DD</span> raised by <span class="fn">~~~</span></span>
<div class="description">
*# Here is the first issue/feedback I have.
*# Here is the second issue/feedback I have.
</div>
</div>
Related Pages
- the include pattern
- include-pattern examples in the wild - an on-going list of websites which use the include pattern.
- include-pattern FAQ - if you have any questions about the include pattern, check here, and if you don't find answers, add your questions!
- include-pattern feedback- general feedback (as opposed to specific issues).
- include-pattern issues - specific issues with the include pattern.
- include-pattern strawman - alternative proposals
