This question is not answered. Helpful answers available: 2. Correct answers available: 1.


Permlink Replies: 3 - Pages: 1 - Last Post: 28-Sep-2018 20:29 Last Post By: RobM Threads: [ Previous | Next ]
AndreWolff

Posts: 1,963
Registered: 14-Dec-2007
Warning: The type attribute is unnecessary for JavaScript resources.
Posted: 28-Sep-2018 18:11
 
  Click to reply to this thread Reply
If I test the code produced by my skins with the W3C html validator, I get a warning:
Warning: The type attribute is unnecessary for JavaScript resources.
 
From line 591, column 1; to line 591, column 31
 
r"></div>↩<script type="text/javascript"><!--//
so the code type="text/javascript" should be removed from the code injected foir the widget function.
RobM

Posts: 3,356
Registered: 4-Aug-2006
Re: Warning: The type attribute is unnecessary for JavaScript resources.
Posted: 28-Sep-2018 19:03   in response to: AndreWolff in response to: AndreWolff
 
  Click to reply to this thread Reply
AndreWolff wrote:
If I test the code produced by my skins with the W3C html validator, I get a warning:
Warning: The type attribute is unnecessary for JavaScript resources.
 
From line 591, column 1; to line 591, column 31
 
r"></div>↩<script type="text/javascript"><!--//
so the code type="text/javascript" should be removed from the code injected foir the widget function.
No, it should only be removed if the skin being used creates HTML5 pages, older skins not making HTML5 pages still need it.

Edited by: RobM on 28-Sep-2018 18:04
Though since it is only a warning about it being unnecessary, it doesn’t actually need to be removed.
AndreWolff

Posts: 1,963
Registered: 14-Dec-2007
Re: Warning: The type attribute is unnecessary for JavaScript resources.
Posted: 28-Sep-2018 19:33   in response to: RobM in response to: RobM
 
  Click to reply to this thread Reply
RobM wrote:
No, it should only be removed if the skin being used creates HTML5 pages, older skins not making HTML5 pages still need it.
So the widget code should check whether the index file contains <!DOCTYPE html>.
RobM

Posts: 3,356
Registered: 4-Aug-2006
Re: Warning: The type attribute is unnecessary for JavaScript resources.
Posted: 28-Sep-2018 20:29   in response to: AndreWolff in response to: AndreWolff
 
  Click to reply to this thread Reply
No, that would not be enough. But since it isn't necessary to remove that code…
Legend
Forum admins
Helpful Answer
Correct Answer

Point your RSS reader here for a feed of the latest messages in all forums