amphtml icon indicating copy to clipboard operation
amphtml copied to clipboard

Clarify whether or not "amp" is permitted in the close </html> tag

Open jmadler opened this issue 11 years ago • 8 comments

jmadler avatar Oct 08 '15 15:10 jmadler

The validator does not currently check for this.

jmadler avatar Oct 08 '15 15:10 jmadler

It's not valid HTML to have attributes in closing tags (except self-closing tags, but those are also open-tags, so it makes sense), so if you assume the fact that the spec claims that AMP is a subset of HTML, then the spec doesn't permit closing tag attributes, though I could maybe see making this explicit.

Ref: http://www.w3.org/html/wg/drafts/html/master/syntax.html#end-tags

The validator maybe should check for this, though I'm these are benign in a browser, so it's not that essential to do so maybe? Probably best to be strict. Not a high priority.

Gregable avatar Oct 08 '15 16:10 Gregable

Yep - let's also clarify in documentation

jmadler avatar Oct 08 '15 22:10 jmadler

I don't think this needs to be documented or checked.

cramforce avatar Oct 08 '15 22:10 cramforce

reopening as per previous conversation - conclusion: add to validator, not docs.

jmadler avatar Oct 08 '15 23:10 jmadler

Did this come up again? Can we close? I struggle to see how we can help here, this is really a pre-parser issue.

dvoytenko avatar Nov 23 '15 18:11 dvoytenko

OK to close

On Mon, Nov 23, 2015, 1:08 PM Dima Voytenko [email protected] wrote:

Did this come up again? Can we close? I struggle to see how we can help here, this is really a pre-parser issue.

—

Reply to this email directly or view it on GitHub https://github.com/ampproject/amphtml/issues/535#issuecomment-159014828.

You received this message because you are subscribed to the Google Groups "amphtml-eng-github" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. To view this discussion on the web visit https://groups.google.com/a/google.com/d/msgid/amphtml-eng-github/ampproject/amphtml/issues/535/159014828%40github.com https://groups.google.com/a/google.com/d/msgid/amphtml-eng-github/ampproject/amphtml/issues/535/159014828%40github.com?utm_medium=email&utm_source=footer .

You received this message because you are subscribed to the Google Groups "amphtml-eng" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. To view this discussion on the web visit https://groups.google.com/a/google.com/d/msgid/amphtml-eng/ampproject/amphtml/issues/535/159014828%40github.com https://groups.google.com/a/google.com/d/msgid/amphtml-eng/ampproject/amphtml/issues/535/159014828%40github.com?utm_medium=email&utm_source=footer .

You received this message because you are subscribed to the Google Groups "dni-eng" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. To view this discussion on the web visit https://groups.google.com/a/google.com/d/msgid/dni-eng/ampproject/amphtml/issues/535/159014828%40github.com https://groups.google.com/a/google.com/d/msgid/dni-eng/ampproject/amphtml/issues/535/159014828%40github.com?utm_medium=email&utm_source=footer .

amphtml-team avatar Nov 23 '15 18:11 amphtml-team

Hm, this is still not checked in the validator as per @jmadler's request. Have we decided that we are no longer worried about this? It can be done if we want, but I hadn't given it high priority.

Gregable avatar Nov 23 '15 18:11 Gregable