Home »
FUDforum Development »
Bug Reports »
[patch] <script> tag arguments for better w3c conformance
[patch] <script> tag arguments for better w3c conformance [message #27475] |
Fri, 09 September 2005 09:40 |
|
I have made small changes to .tmpl files to add arguments to <script> tag. One of w3c standards (i forgot which one, sorry) requires that this tag should have 'type' argument; it is also good to have 'language' argument. Thus, I changed all <script> to <script language="javascript" type="text/javascript">.
Patch against 2.7.2 is attached; in case it won't work for you this is a simple script I used (run it in thm/default/tmpl directory; path_info theme don't have bad <script> statements).
for f in `grep -l '<script>' *.tmpl`; do sed -i -e \
's@<script>@<script language="javascript" type="text/javascript">@' $f; \
done
PS I was not able to attach *.patch file ("The file you are trying to upload does not match the allowed file types."); have to rename it to .txt.
|
|
|
Goto Forum:
Current Time: Sat Nov 30 19:44:17 GMT 2024
Total time taken to generate the page: 0.02988 seconds