Commit 219421187eafcecda3e6162a89828a5aa5ea913b
1 parent
577b8129
Exists in
master
and in
23 other branches
Avoid javascript code making bad HTML parsers go insane
Showing
1 changed file
with
2 additions
and
0 deletions
Show diff stats
app/views/layouts/application.rhtml
| ... | ... | @@ -41,6 +41,7 @@ |
| 41 | 41 | %>' onload='noosfero_init();' |
| 42 | 42 | onresize="registerDocumentSize()"> |
| 43 | 43 | <script type="text/javascript"> |
| 44 | + // <!-- | |
| 44 | 45 | function registerDocumentSize() { |
| 45 | 46 | document.body.className = document.body.className.replace(/docSize-(G|L)T-\d+/g, ""); |
| 46 | 47 | for ( var x=100; x<=1500; x+=100 ) { |
| ... | ... | @@ -52,6 +53,7 @@ |
| 52 | 53 | } |
| 53 | 54 | } |
| 54 | 55 | registerDocumentSize(); |
| 56 | + // --> | |
| 55 | 57 | </script> |
| 56 | 58 | |
| 57 | 59 | <div id="accessibility_menu"> | ... | ... |