W3C home > Mailing lists > Public > public-html@w3.org > July 2009

Re: PHP code only allowed in XHTML 5?

From: Thomas Broyer <t.broyer@ltgt.net>
Date: Thu, 23 Jul 2009 09:45:43 +0200
Message-ID: <a9699fd20907230045u2ad0d63fgf159df4f869947f7@mail.gmail.com>
To: Leif Halvard Silli <lhs@malform.no>
Cc: HTMLWG <public-html@w3.org>
On Thu, Jul 23, 2009 at 2:06 AM, Leif Halvard Silli wrote:
> Thomas Broyer On 09-07-22 23.45:
>>
>> See this Live DOM viewer demo [1] (compare the second and first
>> paragraphs, in WebKit; this sample doesn't demo this behavior in IE)
>
> Your demo [1] confirms that it is the unpaired quote character that is the
> problem, both in IE and in Webkit. Both IE and expects the PI to end at the
> first ">". However, the unpaired quote character means gets IE and Webkit to
> postpone looking for the ">", and send them on search for the pairing quote
> character instead. Thus, they do not, as I think you said somewhere earlier,
> prefer "?>" over ">". For instance, this explains the treatment of the 2nd
> and 3rd paragraph in IE.

Actually, WebKit (tested in Safari 4 and Chrome 3) looks for either
the pairing quote character *or* "?>" (see how the second paragraph is
parsed in [1] compared to e.g. the fourth; also, change the demo to
end the <!--comment--> with ?> and see how "R" now appears in the DOM)

>> [1] http://software.hixie.ch/utilities/js/live-dom-viewer/saved/182

-- 
Thomas Broyer
Received on Thursday, 23 July 2009 07:46:24 UTC

This archive was generated by hypermail 2.3.1 : Thursday, 29 October 2015 10:15:48 UTC