diff --git a/src/pkg/html/template/attr.go b/src/pkg/html/template/attr.go index 3ea02880d4..d65d340073 100644 --- a/src/pkg/html/template/attr.go +++ b/src/pkg/html/template/attr.go @@ -90,7 +90,7 @@ var attrTypeMap = map[string]contentType{ "name": contentTypePlain, "novalidate": contentTypeUnsafe, // Skip handler names from - // http://www.w3.org/TR/html5/Overview.html#event-handlers-on-elements-document-objects-and-window-objects + // http://www.w3.org/TR/html5/webappapis.html#event-handlers-on-elements,-document-objects,-and-window-objects // since we have special handling in attrType. "open": contentTypePlain, "optimum": contentTypePlain, @@ -160,7 +160,7 @@ func attrType(name string) contentType { // Heuristics to prevent "javascript:..." injection in custom // data attributes and custom attributes like g:tweetUrl. - // http://www.w3.org/TR/html5/elements.html#embedding-custom-non-visible-data-with-the-data-attributes: + // http://www.w3.org/TR/html5/dom.html#embedding-custom-non-visible-data-with-the-data-*-attributes // "Custom data attributes are intended to store custom data // private to the page or application, for which there are no // more appropriate attributes or elements." diff --git a/src/pkg/html/template/content.go b/src/pkg/html/template/content.go index 41b1116a66..3715ed5c93 100644 --- a/src/pkg/html/template/content.go +++ b/src/pkg/html/template/content.go @@ -16,7 +16,8 @@ type ( // 2. The CSS3 rule production, such as `a[href=~"https:"].foo#bar`. // 3. CSS3 declaration productions, such as `color: red; margin: 2px`. // 4. The CSS3 value production, such as `rgba(0, 0, 255, 127)`. - // See http://www.w3.org/TR/css3-syntax/#style + // See http://www.w3.org/TR/css3-syntax/#parsing and + // https://web.archive.org/web/20090211114933/http://w3.org/TR/css3-syntax#style CSS string // HTML encapsulates a known safe HTML document fragment. diff --git a/src/pkg/html/template/context.go b/src/pkg/html/template/context.go index eb47e2be3c..59e794d686 100644 --- a/src/pkg/html/template/context.go +++ b/src/pkg/html/template/context.go @@ -13,7 +13,7 @@ import ( // // The zero value of type context is the start context for a template that // produces an HTML fragment as defined at -// http://www.w3.org/TR/html5/the-end.html#parsing-html-fragments +// http://www.w3.org/TR/html5/syntax.html#the-end // where the context element is null. type context struct { state state @@ -96,7 +96,7 @@ const ( // stateHTMLCmt occurs inside an . stateHTMLCmt // stateRCDATA occurs inside an RCDATA element (