- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for attrStartStates (0.15 sec)
-
src/html/template/transition.go
// Occurs due to tag ending '>', and valueless attribute. c.state = stateTag return c, i } c.state = stateBeforeValue // Consume the "=". return c, i + 1 } var attrStartStates = [...]state{ attrNone: stateAttr, attrScript: stateJS, attrScriptType: stateAttr, attrStyle: stateCSS, attrURL: stateURL, attrSrcset: stateSrcset, }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Mar 11 19:54:31 UTC 2024 - 18.2K bytes - Viewed (0) -
src/html/template/escape.go
case stateTag: // In `<foo {{.}}`, the action should emit an attribute. c.state = stateAttrName case stateBeforeValue: // In `<foo bar={{.}}`, the action is an undelimited value. c.state, c.delim, c.attr = attrStartStates[c.attr], delimSpaceOrTagEnd, attrNone case stateAfterName: // In `<foo bar {{.}}`, the action is an attribute name. c.state, c.attr = stateAttrName, attrNone } return c }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Oct 02 15:18:39 UTC 2023 - 32.4K bytes - Viewed (0)