May 5, 2003

More on Targets and DTDs

Jeffrey Zeldman brings to our attention some interesting information. Apparantly, you don't have to use Javascript and the DOM(Document Object Model) to get links to use the target attribute. "Jacques Distler":http://golem.ph.utexas.edu/~distler/blog/ has come up with a workaround that uses just the DTD(Document Type Declaration).
<!ENTITY % XHTML.version "-//golem.ph.utexas.edu//DTD XHTML 1.1 plus Target 1.0//EN" > <!ENTITY % xhtml11.mod PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd" > %xhtml11.mod; <!ENTITY % xhtml-target.mod PUBLIC "-//W3C//ELEMENTS XHTML Target 1.0//EN" "http://www.w3.org/TR/xhtml-modularization/DTD/xhtml-target-1.mod" > %xhtml-target.mod;
That will validate with XHTML(eXtensible HyperText Markup Language) Strict, and still use the target attribute. Will it trigger quirks mode? Probably, as browsers use an internal DB(Database) of DOCTYPEs. But in theory, this works great. Theory is cool. Extra points if you noticed that I got mentioned again on "Zeldman":http://www.zeldman.com/daily/0503a.shtml#oneinfive. And double extra points if you're one of the five people to click through to this humble little site. And triple-extra points if you're a regular reader. UPDATE: "Jacques Distler":http://golem.ph.utexas.edu/~distler/blog/ has written in and let me know that it does not trigger QUIRKS mode n Mozilla/Netscape.
Post Info

Tagged As Browsers, Coding, HTML

Comments are Open (1)

Posted at 12:24 PM

Comments

Jacques Distler

In Mozilla/Netscape, it certainly does NOT trigger Quirks Mode. I can't vouch for other browsers (ahem!).

Post a comment

(If you haven't left a comment here before, you may need to be approved by the site owner before your comment will appear. Until then, it won't appear on the entry. Thanks for waiting.)

Search
Comments on this post
Categories
Info
Tony Stephens
Copyright © 1995-2005
Site Version:
10
Licensed:
Creative Commons
Validate:
XHTML, CSS, 508, RSS
Subscribe
Blog-Fu, Link-Fu