Giter Club home page Giter Club logo

Comments (5)

jchatard avatar jchatard commented on July 20, 2024 1

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.

ryansolid avatar ryansolid commented on July 20, 2024 1

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.

ryansolid avatar ryansolid commented on July 20, 2024

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.

jchatard avatar jchatard commented on July 20, 2024

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.

gstrauss avatar gstrauss commented on July 20, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.