RESOLVED INVALID31156
close tag of empty link element reported as error
https://bugs.webkit.org/show_bug.cgi?id=31156
Summary close tag of empty link element reported as error
leeze
Reported 2009-11-05 01:42:49 PST
In an XHTML file a link element inside of the head element produces an error if closed with a closing tag: <link rel="stylesheet" type="text/css" href="an_url_to_a_css_file"></link> gives: Unmatched </link> encountered. Ignoring tag. Using: <link rel="stylesheet" type="text/css" href="an_url_to_a_css_file" /> is recognized as valid as should the former example. The doctype I used was: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
Attachments
Mark Rowe (bdash)
Comment 1 2009-11-05 02:07:36 PST
Can you please attach a test case that demonstrates what you’re seeing?
Alexey Proskuryakov
Comment 2 2009-11-05 10:14:32 PST
I'm pretty sure that your file is not XHTML in fact. Anything served with text/html Content-Type is handled as plain HTML by all browsers, regardless of DOCTYPEs or other magic incantations inside. And LINK is not supposed to be closed in plain HTML.
Note You need to log in before you can comment on or make changes to this bug.