-
Couldn't load subscription status.
- Fork 299
Description
I was working on a website using client side templating with handlebars. I noticed that none of my templates were working.
Turns out building the HTML with trunk caused the document fragments in template elements to disappear.
Building with/without minification, using release/debug mode did not change anything, and using verbose flag on the cli didn't give any useful information.
I have tried tracking down why this happens. From my understanding it comes from parse_document from html5ever from the nipper dependency (Its used when creating a Document).
I am relatively new to these kind of stuff so take that information with a grain of salt, and since I am not really trusting in my findings I thought it would be better to create an issue here first in case I am overlooking something on the Trunk side.
Input:
<!DOCTYPE html>
<html>
<head>
</head>
<body>
<template>
<p> Whatever I write here, gets completely removed. We are just left with a blank document fragment. </p>
</template>
</body>
</html>Output:
<!DOCTYPE html><html><head>
</head>
<body>
<template></template>
</body></html>Expected result:
<!DOCTYPE html><html><head>
</head>
<body>
<template>
<p> Whatever I write here, gets completely removed. We are just left with a blank document fragment. </p>
</template>
</body></html>