-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Handling of templates #60
Comments
I'd say the intent of the spec change was for "completely ignore" as the parsers do, and that the added language does not have the same effect was not considered. As such my vote is towards "adjust the spec language". Are there arguments why the other behavior should be considered superior? I personally can't see myself writing HTML that relies on mf2 on the |
There's a fifth case of template interaction I hadn't considered previously: the contents of the |
One one hand, I don't really see use cases that would want to preserve a |
Currently the specification states only that template content should be ignored, as per HTML parsing. Implementations, however, go further and act as if templates are not there at all. The only exception is Go, which fails to observe HTML parsing requirements and treats templates like any other element. In at least one case (PHP) the templates are in fact removed from the document in a pre-processing step.
There are several cases where a plain reading of the spec (ignore template content) differs from the four major implementations:
Should the specification text be updated, or are implementations buggy?
Case 3 seems especially problematic as it involves potential loss of useful information. Case 2 is exercised in the test suite, but the other three cases are not.
The text was updated successfully, but these errors were encountered: