Comments (5)
I made some digging and it appears that quite a few web servers are using these kind of markers:
- Apache SSI
<!--# ...
- Nginx SSI
<!--# ...
- Cherokee uses SSI
<!--# ...
- Tomcat uses SSI
<!--# ...
- Lighttpd uses SSI
<!--# ...
- IIS uses SSI
<!--# ...
- Varnish which uses ESI
<!--esi ...
&<esi:include ...
- Caddy Server uses templates for SSI
{{include ...}}
- Cloudflare ESI
<esi:include ...
from dom-expressions.
Ok good to know. We can look at changing this but it applies to both the compiler and the runtime output which means I need to do this as a minor change minimum so that we can line them up.
from dom-expressions.
I mean they are HTML comments. Which I'm gathering we all need to use. Is specifically the #
that is problematic for them?
from dom-expressions.
Yes, for example for nginx here's the syntax:
SSI commands have the following generic format:
<!--# command parameter1=value1 parameter2=value2 ... -->
So yeah the # is part of the syntax for them, and after their transformation, this comment has disappeared altogether. Then hydration fails.
from dom-expressions.
The sequence beginning <!--#token
is the convention for a server-side include.
e.g. https://www.w3.org/Jigsaw/Doc/User/SSI.html
lighttpd mod_ssi (when enabled) will detect <!--#-->
as an invalid server-side include (SSI) empty token and will pass the comment string through unmolested, but other servers configured to process the response for server-side includes might replace that character sequence with an error string.
from dom-expressions.
Related Issues (20)
- Is it possible to bind event to rootElement ? HOT 2
- ReferenceError: ogComplete is not defined HOT 1
- [html] top level <style> causes TypeError: Cannot read properties of undefined (reading 'firstChild')
- [html] empty html template causes TypeError: Cannot read properties of undefined (reading 'name')
- `o[1] is not a function`
- There is no definition of `media` property in interface `MetaHTMLAttributes`
- Bug in generic types for universal render target? HOT 5
- Type definitions of `classList` are wrong HOT 8
- Treat `inert` as a boolean attribute
- Support combining tag classes and the class property in hyper dom expressions HOT 1
- Don't consider namespace imports to be dynamic expression HOT 3
- Emit var instead of const for generated element references HOT 7
- Add ability not to treat every tag with `-` in name as web component HOT 4
- `this` inside arrow function is incorrect after Solid transform HOT 3
- `<this.Foo />` doesn't work HOT 2
- Supporting iterable collections HOT 3
- Question: Possible to use third-party component libraries with Tagged Template Literals? HOT 6
- Template generation template literal escape problem
- bug: Compilation from JSX style attribute to ternary results in functions getting called twice HOT 1
- JSX attribute types HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dom-expressions.