Author |
Message |
![[Post New]](/forum/templates/html/images/icon_minipost_new.gif) 25/03/2005 21:14:22
|
Anonymous
|
I'm trying to get advanced poll valid in xhtml 1.0 strict. I'm using the popup template set and have already stripped it of font tags and whatnot. But I still get some errors when I try to validate my page.
In the display_head:
Validator gives me two errors here.
1) there is no attribute "name" (do I just replace "name" with "id" ?)
2) required attribute "action" not specified
And then on the next line...
Validator gives me two more errors.
1) there is no attribute "language"
2) required attribute "type" not specified (is it type="text/javascript" ?)
And then in the display_footer:
Validator says: there is no attribute "target"
I'd appreciate any help or links, as the advanced poll is the only thing stopping me from having a valid xhtml strict site. Thanks in advance.
|
|
![[Post New]](/forum/templates/html/images/icon_minipost_new.gif) 25/03/2005 21:57:25
|
Carbonize
Master
![[Avatar]](/forum/images/avatar/96871336492d73e733f55.jpg)
Joined: 12/06/2003 19:26:08
Messages: 4292
Location: Bristol, UK
Offline
|
there isn't. Welcome to the wonderful world of strict HTML. I personally use javascript and the rel attribute. look at www.carbonize.co.uk/external.js
|
Carbonize
I am not the maker of the Advanced Guestbook
get Lazarus |
|
![[Post New]](/forum/templates/html/images/icon_minipost_new.gif) 25/03/2005 22:24:59
|
Anonymous
|
Thanks for that last bit. But are you saying that it is impossible to get the rest of it valid in xhtml strict?
|
|
![[Post New]](/forum/templates/html/images/icon_minipost_new.gif) 25/03/2005 22:27:17
|
Carbonize
Master
![[Avatar]](/forum/images/avatar/96871336492d73e733f55.jpg)
Joined: 12/06/2003 19:26:08
Messages: 4292
Location: Bristol, UK
Offline
|
I am saying that to open links in a new window we need to cheat a bit and use javascript.
|
Carbonize
I am not the maker of the Advanced Guestbook
get Lazarus |
|
![[Post New]](/forum/templates/html/images/icon_minipost_new.gif) 25/03/2005 22:33:36
|
Anonymous
|
Okay, I get that.
But I really want to fix the other attributes I mentioned above as well, like "name" and "type". Is that an easy fix?
|
|
![[Post New]](/forum/templates/html/images/icon_minipost_new.gif) 26/03/2005 00:52:18
|
Carbonize
Master
![[Avatar]](/forum/images/avatar/96871336492d73e733f55.jpg)
Joined: 12/06/2003 19:26:08
Messages: 4292
Location: Bristol, UK
Offline
|
type is valid name is deprecated but is allowed if you also use id="" give it the same value as the name attribute. go figure
|
Carbonize
I am not the maker of the Advanced Guestbook
get Lazarus |
|
![[Post New]](/forum/templates/html/images/icon_minipost_new.gif) 26/03/2005 01:05:48
|
Carbonize
Master
![[Avatar]](/forum/images/avatar/96871336492d73e733f55.jpg)
Joined: 12/06/2003 19:26:08
Messages: 4292
Location: Bristol, UK
Offline
|
May be best to ignore my above post. I once made my entrie guestbook valid but at sometime I must of accidentally replaced the updated files with an old backup but it is possible.
|
Carbonize
I am not the maker of the Advanced Guestbook
get Lazarus |
|
![[Post New]](/forum/templates/html/images/icon_minipost_new.gif) 26/03/2005 04:18:14
|
Anonymous
|
Okay, I'm down to just 2 errors now.
In the display_head of popup poll template set...
I've replaced "name" with "id" in <form> to make it valid. But now no one can vote or see results. So, that isn't working. Is there another "name" I need to replace somewhere else in the script to get it to work?
Also, the w3c validator keeps complaining about <form> not having an "action" specified. What kind of action should I specify?
Thanks for taking the time to read this. Any help is appreciated. If all else fails, I guess I could go back to xthml transitional .... (shudder, shudder)
|
|
![[Post New]](/forum/templates/html/images/icon_minipost_new.gif) 26/03/2005 11:17:01
|
Carbonize
Master
![[Avatar]](/forum/images/avatar/96871336492d73e733f55.jpg)
Joined: 12/06/2003 19:26:08
Messages: 4292
Location: Bristol, UK
Offline
|
try action="" but no promises.
|
Carbonize
I am not the maker of the Advanced Guestbook
get Lazarus |
|
|