This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.
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...
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.
The target attribute has definitely NOT been added to XHTML 1.1.
(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?
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.
(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?
I updated the flat version of the DTD to reflect the change - the target module is NOT part of XHTML 1.1.
(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?
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/
DTD updates are included in 0.8.6.