You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Using the @html prop on an element outside a <template> behaves as expected. But when @html is applied inside a <template> the component instance is rendered with unexpected <html>, <head>, and <body> elements.
The output as viewed in a text editor, not the browser dev tools. The browser seems to ignore and strip the unexpected elements but they are present in the actual generated file.
Using the
@html
prop on an element outside a<template>
behaves as expected. But when@html
is applied inside a<template>
the component instance is rendered with unexpected<html>
,<head>
, and<body>
elements.Package
package.json
Config
.eleventy.js
Layout
layout.webc
Page
page.webc
Web Component
my-test.webc
Output
The output as viewed in a text editor, not the browser dev tools. The browser seems to ignore and strip the unexpected elements but they are present in the actual generated file.
I had the same experience when I downloaded 11ty/demo-webc-counter and ran it without any modification.
The text was updated successfully, but these errors were encountered: