FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » FUDforum Development » Bug Reports » [patch] <script> tag arguments for better w3c conformance
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
[patch] <script> tag arguments for better w3c conformance [message #27475] Fri, 09 September 2005 09:40 Go to previous message
k001 is currently offline  k001   Russian Federation
Messages: 6
Registered: March 2004
Karma:
Junior Member

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.
[Message index]
 
Read Message
Read Message
Previous Topic: Error in Forum Statistics
Next Topic: Error splitting topic in 2.7.1.
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Sat Nov 30 19:44:17 GMT 2024

Total time taken to generate the page: 0.02988 seconds