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
If this is saved to a *.html file and opened or served as text/html, LibreJS will note the inline script as trivial. If it is saved to a *.xhtml file and opened or served as application/xhtml+xml LibreJS will ignore the inline script.
The JavaScript above can be replaced with arbitrary JavaScript code without LibreJS changing its behaviour.
Edit: If an inline <script> element is inside the <head> instead of <body> it will also be ignored. So this doesn’t influence it.
The text was updated successfully, but these errors were encountered:
If a webpage is served as
application/xhtml+xml
(and is well-formed), then LibreJS won’t detect or block blocks of inline JavaScript.Minimal example:
If this is saved to a
*.html
file and opened or served astext/html
, LibreJS will note the inline script as trivial. If it is saved to a*.xhtml
file and opened or served asapplication/xhtml+xml
LibreJS will ignore the inline script.The JavaScript above can be replaced with arbitrary JavaScript code without LibreJS changing its behaviour.
Edit: If an inline
<script>
element is inside the<head>
instead of<body>
it will also be ignored. So this doesn’t influence it.The text was updated successfully, but these errors were encountered: