| Summary: | Не корректно разбирается <script type="text/javascript"> | ||
|---|---|---|---|
| Product: | Sisyphus | Reporter: | Andriy Stepanov (stanv) <stanv> |
| Component: | alterator-fbi | Assignee: | Mikhail Efremov <sem> |
| Status: | NEW --- | QA Contact: | qa-sisyphus |
| Severity: | normal | ||
| Priority: | P3 | CC: | imz, manowar, nbr, sem |
| Version: | unstable | ||
| Hardware: | all | ||
| OS: | Linux | ||
Если попробовать вставить в ui/<некий модуль>/index.html код: <script type="text/javascript"> var count = 20 var redirect= "http://" + self.location.hostname + ":8080/update/up.html" function countDown(){ // if (0 >= count) { if (count <= 0) { window.location = redirect; }else{ count=count-1; document.getElementById("timer").innerHTML = "This page will redirect in "+count+" seconds" document.getElementById("gobtn").style.display ="None" setTimeout("countDown()", 1000) } } </script> тогда index.html не может роспарсить парсер alterator-fbi: XML Parser: Parse error at line 11:not well-formed (invalid token) У себя проблему я решил, что if (count <= 0) { заменил на: if (0 >= count) { Пробовал использовать вариант: <script src="url"/> но он не работает.