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 BroyerReceived on Thursday, 23 July 2009 07:46:24 GMT
This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 9 May 2012 00:16:42 GMT