( target: Array<Chunk | PrecomputedChunk>, props: Object, )
| 3024 | } |
| 3025 | |
| 3026 | function pushLinkImpl( |
| 3027 | target: Array<Chunk | PrecomputedChunk>, |
| 3028 | props: Object, |
| 3029 | ): null { |
| 3030 | target.push(startChunkForTag('link')); |
| 3031 | |
| 3032 | for (const propKey in props) { |
| 3033 | if (hasOwnProperty.call(props, propKey)) { |
| 3034 | const propValue = props[propKey]; |
| 3035 | if (propValue == null) { |
| 3036 | continue; |
| 3037 | } |
| 3038 | switch (propKey) { |
| 3039 | case 'children': |
| 3040 | case 'dangerouslySetInnerHTML': |
| 3041 | throw new Error( |
| 3042 | `${'link'} is a self-closing tag and must neither have \`children\` nor ` + |
| 3043 | 'use `dangerouslySetInnerHTML`.', |
| 3044 | ); |
| 3045 | default: |
| 3046 | pushAttribute(target, propKey, propValue); |
| 3047 | break; |
| 3048 | } |
| 3049 | } |
| 3050 | } |
| 3051 | |
| 3052 | // Link never participate as a ViewTransition |
| 3053 | |
| 3054 | target.push(endOfStartTagSelfClosing); |
| 3055 | return null; |
| 3056 | } |
| 3057 | |
| 3058 | function pushStyle( |
| 3059 | target: Array<Chunk | PrecomputedChunk>, |
no test coverage detected