Closed (won't fix)
Project:
Resource Description Framework (RDF)
Version:
6.x-1.x-dev
Component:
Interoperability
Priority:
Normal
Category:
Feature request
Assigned:
Reporter:
Created:
4 Mar 2009 at 22:35 UTC
Updated:
24 Feb 2011 at 22:11 UTC
Jump to comment: Most recent
Comments
Comment #1
Arto commentedChangeset [179044] implements the automatic DOCTYPE replacement. It works by looking for the opening HTML tag in the first 15 lines of output, and if the tag is found it replaces anything prior to that offset with the XHTML+RDFa 1.0 DOCTYPE declaration.
The replacement is done via PHP's output buffering mechanism and takes place after
hook_exit()is run. This feature is most likely incompatible with Drupal's aggressive caching, and possibly (though not necessarily) with the static caching provided by Boost as well.The feature only activates if the administrator has enabled it at
admin/settings/rdf#rdfa, and only if the page being served actually contains an HTML response. This, along with the 15-line lookahead limit, ought to make it as robust as possible - which is needed, since error handling in the output buffer callback is all but impossible, and debugging any problems there ain't any fun either.Please report any incompatibilities or bad interactions with other modules that you may experience.
Comment #2
Arto commentedChangeset [179078] implements a configuration option for selecting which namespace prefixes to enable for RDFa usage, and then injects those prefixes as
xmlns:prefix="uri"attributes into the HTML opening tag.There's more RDFa support that could be implemented, but this present level should now be enough to enable basic RDFa use for anyone who has the RDF module installed and is using the "Full HTML" input format to edit their content.
Comment #3
scor commentedMake sure however you don't allow the full HTML filter to be used by anonymous or non trusted users for security reasons.
Comment #4
digi24 commentedThe commit in #1 and #2 may render AJAX forms unusable, please see #476280: RDFa setting breaks json output of some modules and ahah functionality of cck buttons
Comment #5
billsdesk commentedIt works, but generates a PHP error everytime the administrator changes pages. I reporter the error, along with trace details, against the RDF module. This is an important feature, but not usable in its current state.
Comment #6
3dloco commented+1
Comment #7
Anonymous (not verified) commentedI also said this in #847556: Status of RDFa in 6.x?, but I know that scor is planning on focusing on Drupal 7, and I don't think that any of the other maintainers are planning to take up the flag in Drupal 6, so I think that this is closed-won't fix.
Comment #8
samuel lavoie commentedDamn I was looking for that in Drupal 6, can't upgrad to 7 yet... Any module that does that? Microformats doesn't seems reliable.
Comment #9
Anonymous (not verified) commentedAFAIK there is no reliable RDFa handling in Drupal 6.