Menu

#118 HTML target attribute is unsupported with HTML 4.01 Strict

v1.0 (example)
open
nobody
None
5
2017-04-27
2017-04-21
Uzume
No

Using constructs like:

<li><a href="http://www.abebooks.com/servlet/SearchResults?isbn=9781420142501" target="_blank">AbeBooks.com</a>

is unsupported in HTML 4.01 Strict and will fail validation.

See: https://validator.w3.org/check?uri=http%3A%2F%2Fwww.isfdb.org%2Fcgi-bin%2Fpl.cgi%3F607129&charset=%28detect+automatically%29&doctype=Inline&group=0

We could switch from:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">

to:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/1999/REC-html401-19991224/loose.dtd">

but I would perfer to remove target="_blank" (and switch to HTML 5).

Discussion

  • Ahasuerus

    Ahasuerus - 2017-04-24

    Ticket moved from /p/isfdb/bugs/657/

     
  • Uzume

    Uzume - 2017-04-27

    I am confused how this is classified as a support request and not a bug. Clearly we are generating illegal output (our output should adhere to markup format we state we are providing).

     

Anonymous
Anonymous

Add attachments
Cancel