git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH] Removes the <?xml?> declaration from gitweb.pl

From
Jakub Narebski <jnareb@gmail.com>
Date
Oct 13, 2006, 15:09 UTC
Message-ID
<200610131709.08515.jnareb@gmail.com>
In-Reply-To
<200610131605.56913.robin.rosenberg.lists@dewire.com>
Robin Rosenberg wrote:
Show 18 quoted lines
> 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 &nbsp; 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
Previous: Robin RosenbergNext: Luben Tuikov
Message 15 of 16 in “Gitweb indentation wrong in Internet Explorer”
  1. Ralf BaechleOct 11, 2006
  2. Jakub NarebskiOct 11, 2006
  3. Ralf BaechleOct 11, 2006
  4. PazuOct 11, 2006
  5. Removes the <?xml?> declaration from gitweb.plPazu, Oct 11, 2006
  6. Jakub NarebskiOct 11, 2006
  7. PazuOct 12, 2006
  8. PazuOct 12, 2006
  9. Robin RosenbergOct 12, 2006
  10. Jakub NarebskiOct 12, 2006
  11. PazuOct 13, 2006
  12. Jakub NarebskiOct 13, 2006
  13. PazuOct 13, 2006
  14. Robin RosenbergOct 13, 2006
  15. Jakub NarebskiOct 13, 2006
  16. Luben TuikovOct 11, 2006

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.