PDA

View Full Version : XHTML strict validation



Jahova
13-09-2009, 01:42 PM
I'm using the twitter API to display my last tweet from twitter. This includes having to use two script tags to include two pieces of javascript. These won't validate as they are obviously invalid. Is there anyway to stop these tags from being validated?

Here are the tags I have to use, due to the twitter API:


<script type="text/javascript" src="http://twitter.com/javascripts/blogger.js"></script>
<script type="text/javascript" src="http://twitter.com/statuses/user_timeline/TomSpit.json?callback=twitterCallback2&count=1"></script>


Thanks in advance. Tom.

BoyBetterKnow
13-09-2009, 01:46 PM
Switch doctype? :)

Chippiewill
13-09-2009, 01:55 PM
Use the HTML ignore tags.

Jahova
13-09-2009, 01:55 PM
I'd prefer to stay on strict, if possible.
@00chips - It doesn't work with the <!-- --> tags wrapped around it?

Dromenail
13-09-2009, 02:29 PM
Why do you care if its valid lol.

Edited by Jamesy (Forum Moderator): Please do not post pointlessly adding nothing constructive to the thread

Jahova
13-09-2009, 03:47 PM
I found out how else I could have done the same thing, using PHP rather than the API and it is working just as good while being valid. Thread unofficially closed.

Chippiewill
13-09-2009, 06:37 PM
I'd prefer to stay on strict, if possible.
@00chips - It doesn't work with the <!-- --> tags wrapped around it?

It's javascript not HTML

BoyBetterKnow
14-09-2009, 09:01 AM
Tom use HTML 4.01 Strict ;)

Jahova
14-09-2009, 03:02 PM
I'm just using the validator strict thing. Also, this is just a test to improve my coding and seeing if parts that I couldn't get to be strict in the past I can now re-code to become valid.

That is all. Tom.

Want to hide these adverts? Register an account for free!