Keyword

Problem - K2 and w3c

  • hares7293
  • hares7293's Avatar Topic Author
  • Offline
  • New Member
More
11 years 10 months ago #106737 by hares7293
Problem - K2 and w3c was created by hares7293
Hello,

For instance, if in "item view option" i put media to "show" then it creates a lot of w3c errors

required attribute "type" not specified
<span class="itemVideo"><script language="Javascript">

Then
document type does not allow element "br" here - var br ='<br>';
document type does not allow element "div" here - var div ='<div>';
....

When media is on "hide" all errors disappeared.

It makes the following with Google (description)
script language="Javascript"> var br ='<br>'; var xbr ='<br/>'; var div ='<div>'; var... (the real page description doesn't appear)

Thanks in advance

Please Log in or Create an account to join the conversation.

More
11 years 10 months ago #106738 by Lefteris
Replied by Lefteris on topic Re: Problem - K2 and w3c
Hi. Media comes from AllVideos plugin. This plugin renders the code of the video provider. Some of the providers do provide invalid code, there is nothing you can do.

JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

Please Log in or Create an account to join the conversation.

  • hares7293
  • hares7293's Avatar Topic Author
  • Offline
  • New Member
More
11 years 10 months ago - 11 years 10 months ago #106739 by hares7293
Replied by hares7293 on topic Re: Problem - K2 and w3c
Sorry for this late answer. I have another example and that's why i think my problem may comes from k2.

If my article is published as (in item view options)
readmore - my text (with introtext as hide and fulltext as show) it's ok

However
If my article is published as
no readmore - my text (with introtext as show and fulltext as (show or hide) i got the following w3c errors

required attribute "type" not specified
<script language="Javascript">

The source

<!-- Item text -->
<div class="itemFullText">
<script language="Javascript">

var br ='<br>';
var xbr ='<br/>';

var div ='<div>';
var span ='<span>';
var p ='<p>';

var i ='<i>';
var u ='<u>';
var s ='<s>';
var b ='<b>';

var endi ='</i>';
var endu ='</u>';
var ends ='</s>';
var endb ='</b>';

var endp ='</p>';
var enddiv ='</div>';
var endspan ='</span>';

var a ='<a href="###url###">';
var enda ='</a>';

</script>

Please Log in or Create an account to join the conversation.

More
10 years 11 months ago #106740 by brokenchaos
Replied by brokenchaos on topic Re: Problem - K2 and w3c
I have this problem now... has it been resolved?

Please Log in or Create an account to join the conversation.

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
10 years 10 months ago #106741 by Krikor Boghossian
Replied by Krikor Boghossian on topic Re: Problem - K2 and w3c
According to your DOCTYPE you need to edit the script tag that is used by AllVideos.
I suggest you do not alter it since it is considered a hack and you will all your changes when you update the extension.

JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

Please Log in or Create an account to join the conversation.


Powered by Kunena Forum