Closed DrSensor closed 1 year ago
Certain WG use xml transform like <xsl:if> for declarative custom element (DCE) 🤯
<xsl:if>
https://github.com/EPA-WG/custom-element
I highly recommend to check their code. However, their current implementation cause double parsing:
custom-element:defined
The worst part is it parse the whole content inside \<custom-element>. So phase 1 is HTML->DOM then phase 2 is DOM->XML->DOM.
I didn't expect this since I try hard to avoid XML related API like XPath query.
Certain WG use xml transform like
<xsl:if>
for declarative custom element (DCE) 🤯https://github.com/EPA-WG/custom-element
I highly recommend to check their code. However, their current implementation cause double parsing:
custom-element:defined
)custom-element:defined
)The worst part is it parse the whole content inside \<custom-element>. So phase 1 is HTML->DOM then phase 2 is DOM->XML->DOM.
I didn't expect this since I try hard to avoid XML related API like XPath query.