This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 6597 - BUG: Target attribute is allowed in XHTML1.1
Summary: BUG: Target attribute is allowed in XHTML1.1
Status: RESOLVED FIXED
Alias: None
Product: Validator
Classification: Unclassified
Component: check (show other bugs)
Version: 0.8.4
Hardware: PC All
: P2 normal
Target Milestone: 0.8.6
Assignee: Ville Skyttä
QA Contact: qa-dev tracking
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-02-19 12:10 UTC by sander
Modified: 2010-03-02 18:49 UTC (History)
3 users (show)

See Also:


Attachments

Description sander 2009-02-19 12:10:19 UTC
The validator sais that the target attribute is allowed in xhtml 1.1, but it isn't!

An example code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head><title></title></head>
<body><div>
     <form action="..." target="something">
<div><input type="button" name="submit"/></div>
</form></div></body></html>

This document is validated as 'Valid', but it contains target...
Comment 1 Olivier Thereaux 2009-02-23 15:25:31 UTC
I think the target module, which was previously not included in XHTML 1.1, has been added again. I can't seem to find a record of that decision - Shane may - but XHTML 1.1 is a moving target (no pun intended) and that seems to be a recent change.

Not a bug in the validator, at least, as far as I know.
Comment 2 Shane McCarron 2009-02-23 16:55:54 UTC
The target attribute has definitely NOT been added to XHTML 1.1.
Comment 3 Olivier Thereaux 2009-02-23 17:05:08 UTC
(In reply to comment #2)
> The target attribute has definitely NOT been added to XHTML 1.1.

Hi Shane,

Any reason then why validating against http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd should pass target="whatever" attribute as OK? or indeed, the ED version's DTD.

I tried with this, to make sure the validator's catalog was not the culprit

<!DOCTYPE html SYSTEM 
"http://www.w3.org/MarkUp/2008/ED-xhtml11-20080213/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head><title></title></head>
<body><div>
     <form action="" target="something">
<div><input type="button" name="submit"/></div>
</form></div>
<p target="blank"><a target="blank" href="whatever">foo</a></p>
</body></html>

 and got a single error for the <p>. target in form and a passed just fine. Any idea what's up?
Comment 4 Shane McCarron 2009-02-23 17:29:29 UTC
The current XHTML 1.1 Editor's Draft is always accessible via http://www.w3.org/MarkUp/Drafts#xhtml11 - this currently goes to http://www.w3.org/MarkUp/2009/ED-xhtml11-20090106/ - and that document does not include @target in the markup language.

As to why the most recent public working draft is two years out of date?  Don't get me started.  Finally, I would note that the definitive DTDs at http://www.w3.org/MarkUp/DTD are up to date and do not reflect @target as part of xhtml 1.1.

There *is* a Proposed Edited Recommendation version of XHTML 1.1 that is pending publication.  I am not sure what is holding it up at this point.  It has been ready since January.
Comment 5 Ville Skyttä 2009-06-30 04:46:07 UTC
(In reply to comment #4)
> Finally, I would note that the definitive DTDs at
> http://www.w3.org/MarkUp/DTD are up to date and do not reflect @target as part
> of xhtml 1.1.

The flat DTD at http://www.w3.org/MarkUp/DTD/xhtml11-flat.dtd (Last-Modified: Thu, 15 Nov 2007 14:31:04 GMT) does have the target attribute module embedded in it.  Do I understand correctly that this is an error in the flat DTD?
Comment 6 Shane McCarron 2009-07-05 20:52:28 UTC
I updated the flat version of the DTD to reflect the change - the target module is NOT part of XHTML 1.1.
Comment 7 Ville Skyttä 2009-09-15 21:42:29 UTC
(In reply to comment #6)
> I updated the flat version of the DTD to reflect the change - the target module
> is NOT part of XHTML 1.1.

Thanks.  I looked at the current http://www.w3.org/MarkUp/DTD/xhtml11-flat.dtd and found the last line in it suspicious; it reads

    ]><html><head><title>title</title></head><body><p>text</p></body></html>

This isn't intentional, is it?
Comment 8 Ville Skyttä 2009-10-23 16:11:18 UTC
I've replaced the validator's copy of the XHTML 1.1 flat DTD in CVS with the one currently available from http://www.w3.org/MarkUp/DTD/xhtml11-flat.dtd (sans the suspicious last line, see commment 7) and target is no longer accepted, see http://qa-dev.w3.org/wmvs/HEAD/
Comment 9 Ville Skyttä 2010-03-02 18:49:53 UTC
DTD updates are included in 0.8.6.