- Sort Score
- Result 10 results
- Languages All
Results 1 - 5 of 5 for elementScript (0.4 sec)
-
src/html/template/escape_test.go
}, { `<script`, context{state: stateTag, element: elementScript}, }, { `<script `, context{state: stateTag, element: elementScript}, }, { `<script src="foo.js" `, context{state: stateTag, element: elementScript}, }, { `<script src='foo.js' `, context{state: stateTag, element: elementScript}, }, { `<script type=text/javascript `,
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Oct 16 03:29:27 UTC 2023 - 56.2K bytes - Viewed (0) -
src/html/template/element_string.go
func _() { // An "invalid array index" compiler error signifies that the constant values have changed. // Re-run the stringer command to generate them again. var x [1]struct{} _ = x[elementNone-0] _ = x[elementScript-1] _ = x[elementStyle-2] _ = x[elementTextarea-3] _ = x[elementTitle-4] } const _element_name = "elementNoneelementScriptelementStyleelementTextareaelementTitle"
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Apr 11 20:24:07 UTC 2023 - 745 bytes - Viewed (0) -
src/html/template/transition.go
e = elementNone } // We've found an HTML tag. return context{state: stateTag, element: e}, j } k = j } } var elementContentType = [...]state{ elementNone: stateText, elementScript: stateJS, elementStyle: stateCSS, elementTextarea: stateRCDATA, elementTitle: stateRCDATA, } // tTag is the context transition function for the tag state. func tTag(c context, s []byte) (context, int) {
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/context.go
//go:generate stringer -type element const ( // elementNone occurs outside a special tag or special element body. elementNone element = iota // elementScript corresponds to the raw text <script> element // with JS MIME type or no type attribute. elementScript // elementStyle corresponds to the raw text <style> element. elementStyle // elementTextarea corresponds to the RCDATA <textarea> element. elementTextarea
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Oct 16 03:29:27 UTC 2023 - 9.4K bytes - Viewed (0) -
src/html/template/escape.go
} return c, len(s) } element := c.element // If this is a non-JS "type" attribute inside "script" tag, do not treat the contents as JS. if c.state == stateAttr && c.element == elementScript && c.attr == attrScriptType && !isJSType(string(s[:i])) { element = elementNone } if c.delim != delimSpaceOrTagEnd { // Consume any quote. i++ }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Oct 02 15:18:39 UTC 2023 - 32.4K bytes - Viewed (0)