diff options
Diffstat (limited to 'src/html/template/context.go')
| -rw-r--r-- | src/html/template/context.go | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/html/template/context.go b/src/html/template/context.go index b78f0f7325..8b3af2feab 100644 --- a/src/html/template/context.go +++ b/src/html/template/context.go @@ -156,6 +156,10 @@ const ( // stateError is an infectious error state outside any valid // HTML/CSS/JS construct. stateError + // stateMetaContent occurs inside a HTML meta element content attribute. + stateMetaContent + // stateMetaContentURL occurs inside a "url=" tag in a HTML meta element content attribute. + stateMetaContentURL // stateDead marks unreachable code after a {{break}} or {{continue}}. stateDead ) @@ -267,6 +271,8 @@ const ( elementTextarea // elementTitle corresponds to the RCDATA <title> element. elementTitle + // elementMeta corresponds to the HTML <meta> element. + elementMeta ) //go:generate stringer -type attr @@ -288,4 +294,6 @@ const ( attrURL // attrSrcset corresponds to a srcset attribute. attrSrcset + // attrMetaContent corresponds to the content attribute in meta HTML element. + attrMetaContent ) |
