Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for elementScript (0.69 sec)

  1. 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)
  2. 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)
Back to top