Re: [xml] HTML parsing problem (choking on embedded HTML tags) still exists for me



On Fri, May 27, 2005 at 05:00:28PM +0200, Cyrill Osterwalder wrote:
case. But such HTML code is actually legal and can hit the HTML parser any

   No this is not legal HTML.

http://www.w3.org/TR/html401/appendix/notes.html#notes-specifying-data

  "When script or style data is the content of an element (SCRIPT and
  STYLE), the data begins immediately after the element start tag and ends
  at the first ETAGO ("</") delimiter followed by a name start character
  ([a-zA-Z]); note that this may not be the element's end tag. Authors
  should therefore escape "</" within the content. Escape mechanisms
  are specific to each scripting or style sheet language."

time again. Especially it can be delivered by any content provider where I

  broken content can be delivered by anybody. But nobody is then garanteed to
parse it correctly.

Daniel

-- 
Daniel Veillard      | Red Hat Desktop team http://redhat.com/
veillard redhat com  | libxml GNOME XML XSLT toolkit  http://xmlsoft.org/
http://veillard.com/ | Rpmfind RPM search engine http://rpmfind.net/



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]