Web page Create: 'target' attrib needs Transitional DOCTYPE

Bugs found in XnView Classic. Please report only one bug per topic!

Moderators: helmut, XnTriq, xnview

Post Reply
Jambalaya

Web page Create: 'target' attrib needs Transitional DOCTYPE

Post by Jambalaya »

The "_Default - Frame" template (XnView 1.93.4) for thumb.html declares a strict HTML 4.01 DOCTYPE that is incompatible with its use of the attribute 'target' for the 'A' elements it generates. (Try running a created thumb.html through the W3C validator at <http://validator.w3.org/>.)

What's needed here instead is an HTML 4.01 Transitional DOCTYPE (which allows the 'target' attrib) declaration:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
User avatar
helmut
Posts: 8704
Joined: Sun Oct 12, 2003 6:47 pm
Location: Frankfurt, Germany

Re: Web page Create: 'target' attrib needs Transitional DOCT

Post by helmut »

Jambalaya wrote:The "_Default - Frame" template (XnView 1.93.4) for thumb.html declares a strict HTML 4.01 DOCTYPE that is incompatible with its use of the attribute 'target' for the 'A' elements it generates. (Try running a created thumb.html through the W3C validator at <http://validator.w3.org/>.)

What's needed here instead is an HTML 4.01 Transitional DOCTYPE (which allows the 'target' attrib) declaration:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
Thank you for the hint. Could you please send a corrected template to Pierre with a link to this forum topic? Thank you!
Post Reply