Bug 31156
| Summary: | close tag of empty link element reported as error | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | leeze |
| Component: | WebCore Misc. | Assignee: | Nobody <webkit-unassigned> |
| Status: | RESOLVED INVALID | ||
| Severity: | Minor | CC: | ap |
| Priority: | P2 | ||
| Version: | 528+ (Nightly build) | ||
| Hardware: | Mac (Intel) | ||
| OS: | OS X 10.5 | ||
leeze
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 | ||
|---|---|---|
| Add attachment proposed patch, testcase, etc. |
Mark Rowe (bdash)
Can you please attach a test case that demonstrates what you’re seeing?
Alexey Proskuryakov
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.