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
Switch to threaded view of this topic Create a new topic Submit Reply
[patch] <script> tag arguments for better w3c conformance [message #27475] Fri, 09 September 2005 09:40 Go to next message
k001 is currently offline  k001   Russian Federation
Messages: 6
Registered: March 2004
Karma: 0
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.
Re: [patch] <script> tag arguments for better w3c conformance [message #27480 is a reply to message #27475] Fri, 09 September 2005 13:48 Go to previous message
Ilia is currently offline  Ilia   Canada
Messages: 13241
Registered: January 2002
Karma: 0
Senior Member
Administrator
Core Developer
Fixed in CVS, thanks for finding the problem and providing a fix.

FUDforum Core Developer
  Switch to threaded view of this topic Create a new topic Submit Reply
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: Tue Nov 12 21:11:25 GMT 2024

Total time taken to generate the page: 0.02417 seconds