html - why do the commented code also work? -


While testing my site, I found something interesting on Chrome browser:

& Lt; Jdoc: included type = "head" /> which gives the result of joomla links and meta etc:

  & lt; Base href = "" /> & Lt; Meta / & gt; ......  

But after commenting code like this:

   & gt; --- & gt;  

Result while observing:

   & Lt; Meta / & gt; ...... --- & gt;  

This is just & lt ;! --- & lt; Jdoc: included type = "head" /> --- & gt; & lt; Jdoc: contains type = "head" /> Joomla framework feature ...

& lt; Jdoc ... /> is processed on Server Side (on Joomla's Server) . This means that it will ignore the comments mark and everything that makes sense makes everything happen because HTML comment marks are processed on the customer side, not the server side . After processing on the server, it sends the processed information along with a comment mark in favor of the customer and then the customer side filters it as a comment <+

Hope I helped!

/ div>

Comments

Popular posts from this blog

import - Python ImportError: No module named wmi -

Editing Python Class in Shell and SQLAlchemy -

c# - MySQL Parameterized Select Query joining tables issue -