Click to See Complete Forum and Search --> : is the target attribute depricated in xhtml?


lcscne
12-03-2003, 08:23 AM
I keep getting:

Line 5, column 77: there is no attribute "target" (explain...).
...ory'><h3><a href='/?PageID=1' target='_self'>Home</a></h3></div><div class='n

while running the xhtml validator at validator.w3.org. Is there a new way of setting the target attribute on a link in xhtml?

screaming_banjo
12-03-2003, 09:10 AM
It doesn't look as if it's deprecated, dont' know why you're getting that, check here for the list of deprecated attributes:

http://www.w3.org/TR/html40/index/attributes.html

and for your info, you may want a look here too:


http://www.w3.org/TR/html40/index/elements.html

Sorry, I couldn't be more help but maybe someone else will!

spufi
12-03-2003, 09:53 AM
Originally posted by screaming_banjo
It doesn't look as if it's deprecated, dont' know why you're getting that, check here for the list of deprecated attributes:

http://www.w3.org/TR/html40/index/attributes.html

and for your info, you may want a look here too:


http://www.w3.org/TR/html40/index/elements.html

Sorry, I couldn't be more help but maybe someone else will!

They asked about XHTML and you gave them a link to HTML. I do know that in XHTML 1.1 the target attribute isn't allowed. I debated if this was a good thing, or not for about two minutes and then just learned to live with it.

screaming_banjo
12-03-2003, 10:01 AM
Ooops! Sorry, my mistake!

Just trying....and failing to help!

pyro
12-03-2003, 11:13 AM
The target attribute is valid with an XHTML 1.0 Frameset DOCTYPE...

lcscne
12-03-2003, 11:57 AM
thanks pyro

im using strict doctype, and validating as long as I remove the target attributes from my links. looks like frameset is the only doctype that still supports the target attribute. this seems to me like a bug, what would setting a frame enabled doctype have anything to do with the target attribute?

lcscne
12-03-2003, 12:22 PM
confirmed:

http://www.w3schools.com/tags/tag_a.asp

shows the target attribute is only supported under Transitional and Frameset doctypes? Seems odd to me how adding the target attribute breaks adherence to the strict rendering mode, but they didn't ask me to sit in on the meetings when they were writing the xhtml standard so i guess were stuck without the target attribute.

must be web enabled refrigerators won't be able to launch new instances of a their browsers.

pyro
12-03-2003, 01:27 PM
Originally posted by lcscne
what would setting a frame enabled doctype have anything to do with the target attribute? The target attribute is needed with a frameset DOCTYPE as if one is using frames, they need to be able to specify which frame links open in. I'm gussing that this (http://www.w3.org/TR/WCAG10/wai-pageauth.html#tech-avoid-pop-ups) is a large part of the reason that the target attribute has been depreciated with XHTML 1.1.