Open murphye opened 2 days ago
I see. The output appears to be correct but the validation seems to get tripped up by the tags inside the title string. Thanks for reporting.
@ryansolid Same issue on <col />
and <colgroup/>
import { createMemo, For, onMount } from 'solid-js'
import context from './context'
function Col(props: { key: string, type: 'header' | 'body' }) {
const [state, actions] = context.useContext()
onMount(() => {
actions.setSignalRefresh(state.signalRefresh + 1)
})
return (
<col
ref={(el) => { actions.setState(props.type === 'header' ? 'headerCols' : 'bodyCols', props.key, el) }}
data-key={props.key}
/>
)
}
export default function Colgroup(props: {
type: 'header' | 'body'
}) {
const [state] = context.useContext()
const cols = createMemo(() => {
if (state.data.length === 0) {
return []
}
return Object.keys(state.data[0])
})
return (
<>
<colgroup>
<For each={cols()}>
{k => (
<Col key={k} type={props.type} />
)}
</For>
</colgroup>
</>
)
}
The HTML provided is malformed and will yield unexpected output when evaluated by a browser.
- Expected
+ Received
- <col>
Original HTML:
<col>
The HTML provided is malformed and will yield unexpected output when evaluated by a browser.
- Expected
+ Received
- <colgroup></colgroup>
Original HTML:
<colgroup></colgroup>
PR for tags in attributes, tfoot
and col/colgroup
https://github.com/ryansolid/dom-expressions/pull/370
Describe the bug
Using Solid 1.9.3, when running
npm run build
I getThe HTML provided is malformed and will yield unexpected output when evaluated by a browser.
.I started with the Solid Bootstrap template (https://github.com/solidjs/templates/tree/main/ts-bootstrap) and narrowed down where the problem is stemming from where there is HTML within an attribute, as shown here for a Bootstrap Tooltip:
Your Example Website or App
none
Steps to Reproduce the Bug or Issue
Expected behavior
No error
Screenshots or Videos
No response
Platform
Additional context
No response