Solved

XHTML 1.1 and TARGET atribute redeclaring

Posted on 2003-11-30
2
328 Views
Last Modified: 2013-12-16
check out this site (BETA!!!) - http://www.primacas.cz/tmp - and look in the top of it. you'll see a "]>" written here...
that's a remain of

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/tr/xhtml11/DTD/xhtml11.dtd" [<!ATTLIST a target CDATA #IMPLIED>]>

that I use for specifying that I need to use TARGET attribute for <a> tag.

anyone any tip on why are the last two characters of DOCTYPE ignored and how to get rid of it?
0
Comment
Question by:3CEO
2 Comments
 
LVL 17

Accepted Solution

by:
dorward earned 125 total points
ID: 9851961
I don't see that effect, but I would imagine that its a side effect of using a browser which doesn't support XHTML properly. You are sending the page with the wrong content type, XHTML 1.1 should not be served as text/html, it should be served as application/xhtml+xml and may be served as application/xml.

Frankly, if you "need" to use the target attribute (which you don't unless you are trying to force new windows on users or use frames - both bad ideas), then you should be using HTML 4.01 Transitional (or maybe XHTML 1.0 Transitional while following the Appendix C compatability guidelines).
0
 

Author Comment

by:3CEO
ID: 9852422
sorry, the code in question is already gone... but these tips of yours should be the solution... I might just forget the target attribute and work with what I've been given :) you've got 125 points...
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Blog posts not showing up on Blog page 7 52
Bootstrap Columns not Side-by-Side 3 36
Need to click button twice to get results 2 33
Centered Image 2 22
Things That Drive Us Nuts Have you noticed the use of the reCaptcha feature at EE and other web sites?  It wants you to read and retype something that looks like this.Insanity!  It's not EE's fault - that's just the way reCaptcha works.  But it is …
This article discusses how to create an extensible mechanism for linked drop downs.
The purpose of this video is to demonstrate how to add AdSense Ads to a WordPress Website, and how to set up WordPress to automatically place Ads in Sidebars. This will be demonstrated using a Windows 8 PC. Log into your AdSense account. : Cli…
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

920 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now