From: Jakub Narebski <jnareb@gmail.com>
To: Robin Rosenberg <robin.rosenberg.lists@dewire.com>
Cc: git@vger.kernel.org
Subject: Re: [PATCH] Removes the <?xml?> declaration from gitweb.pl
Date: Fri, 13 Oct 2006 17:09:08 +0200 [thread overview]
Message-ID: <200610131709.08515.jnareb@gmail.com> (raw)
In-Reply-To: <200610131605.56913.robin.rosenberg.lists@dewire.com>
Robin Rosenberg wrote:
> torsdag 12 oktober 2006 23:21 skrev Jakub Narebski:
>> Robin Rosenberg wrote:
>>> onsdag 11 oktober 2006 23:27 skrev Jakub Narebski:
>>>> Pazu wrote:
>>>>> The XML declaration forces IE6 into quirks mode, breaking our
>>>>> nice standards compliant stylesheet.
>>>>
>>>> But isn't it _required_ by XML/XHTML?
>>>
>>> For pure XML document it is required, but not for XHTML, unless the
>>> encoding is something other than UTF-8 or (shudder) UTF-16. W3C
>>> recommends it though.
>>
>> So what should be our decision? Honor IE quirks ;-) and either remove
>> XML declaration, or use Transitional DTD? Add back SPC to conversion
>> in esc_html? Ignore broken browsers?
>
> It isn't required by the standard. Why not just drop it?
>From http://www.w3.org/TR/xhtml1/#docconf
An XML declaration is not required in all XML documents; however XHTML
document authors are strongly encouraged to use XML declarations in all
their documents. Such a declaration is required when the character
encoding of the document is other than the default UTF-8 or UTF-16 and
no encoding was determined by a higher-level protocol.
So even if it is not required, it is recommended. But yes, removing
<?xml?> for bug-compatibility conformance is better idea than mucking
with browser detection... if we sould need browser detection to avoid
other bugs (like non-W3C CSS box model in IE), then perhaps we could
reintroduce <?xml?> in standards-conforming browsers.
--
Jakub Narebski
Poland
next prev parent reply other threads:[~2006-10-13 15:09 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-10-11 17:25 Gitweb indentation wrong in Internet Explorer Ralf Baechle
2006-10-11 17:47 ` Jakub Narebski
2006-10-11 18:15 ` Ralf Baechle
2006-10-11 20:53 ` Pazu
2006-10-11 21:13 ` [PATCH] Removes the <?xml?> declaration from gitweb.pl Pazu
2006-10-11 21:27 ` Jakub Narebski
2006-10-12 0:26 ` Pazu
2006-10-12 1:08 ` Pazu
2006-10-12 5:45 ` Robin Rosenberg
2006-10-12 21:21 ` Jakub Narebski
2006-10-13 13:01 ` Pazu
2006-10-13 13:07 ` Jakub Narebski
2006-10-13 14:09 ` Pazu
2006-10-13 14:05 ` Robin Rosenberg
2006-10-13 15:09 ` Jakub Narebski [this message]
2006-10-11 18:13 ` Gitweb indentation wrong in Internet Explorer Luben Tuikov
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=200610131709.08515.jnareb@gmail.com \
--to=jnareb@gmail.com \
--cc=git@vger.kernel.org \
--cc=robin.rosenberg.lists@dewire.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.