include-pattern-faq: Difference between revisions
Jump to navigation
Jump to search
(drafted, added scope Q&A) |
m (Reverted edits by RorelChibo (Talk) to last version by RyanKing) |
||
(10 intermediate revisions by 8 users not shown) | |||
Line 8: | Line 8: | ||
A: No. The [[include-pattern]] is specifically [[include-pattern#scope|scoped]] to the current page by design, both from a "vast majority of use cases" perspective, and a ease of implementation perspective. | A: No. The [[include-pattern]] is specifically [[include-pattern#scope|scoped]] to the current page by design, both from a "vast majority of use cases" perspective, and a ease of implementation perspective. | ||
Including data from external resources raises several issues: | |||
* Unreliable (dependency and if/when the data is available) | |||
* Security (possibly malicious data) | |||
* Invisible (original context of the data is not available) | |||
=== Q: ''What is the normative behavior for an include with a "data" value that does not exist?''=== | |||
=== Q: ''Is there an assumption that you should only include one property at a time? What's the expected behavior if, say, my include has an org property, and the including vcard already has an org property?''=== | |||
A: This would depend on two factors, if the format can contain multiple instance of the property included, then both are valid. If the format can only take one instance of a property, than the first should be used and subsequent instances ignored. |
Latest revision as of 19:43, 3 January 2009
include pattern FAQ
This page document frequently asked questions about the include-pattern. For general questions about microformats see the microformats faq.
Q: Does include-pattern support for data outside of the current page?
A: No. The include-pattern is specifically scoped to the current page by design, both from a "vast majority of use cases" perspective, and a ease of implementation perspective.
Including data from external resources raises several issues:
- Unreliable (dependency and if/when the data is available)
- Security (possibly malicious data)
- Invisible (original context of the data is not available)
Q: What is the normative behavior for an include with a "data" value that does not exist?
Q: Is there an assumption that you should only include one property at a time? What's the expected behavior if, say, my include has an org property, and the including vcard already has an org property?
A: This would depend on two factors, if the format can contain multiple instance of the property included, then both are valid. If the format can only take one instance of a property, than the first should be used and subsequent instances ignored.