MCPcopy Create free account
hub / github.com/WhiteSevs/TamperMonkeyScript / createElement

Method createElement

lib/DOMUtils/src/index.ts:140–186  ·  view source on GitHub ↗
(
    /** 元素名 */
    tagName: K,
    /** 属性 */
    property?:
      | ({
          [P in keyof HTMLElementTagNameMap[K]]?: HTMLElementTagNameMap[K][P];
        } & {
          [key: string]: any;
        })
      | string,
    /** 自定义属性 */
    attributes?: DOMUtilsCreateElementAttributesMap
  )

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 8

addStyleMethod · 0.95
addCSSMethod · 0.45
wrapMethod · 0.45
parseHTMLByCreateDomMethod · 0.45
getTextBoundingRectMethod · 0.45
appendPartMethod · 0.45
getInputOffsetMethod · 0.45

Calls 5

htmlMethod · 0.80
forEachMethod · 0.80
stringifyMethod · 0.80
toStringMethod · 0.65
keysMethod · 0.45

Tested by

no test coverage detected