Comment #1 on issue 91 by t.broyer: unnecessary unclosed <head> element  
inserted before parsed text
http://code.google.com/p/html5lib/issues/detail?id=91

Well, the algorithm is the exact one from the current spec draft AFAICT,  
i.e. "A head
element's start tag may be omitted if the first thing inside the head  
element is an
element", which actually is ambiguous when there is *nothing* inside the  
head
element...

However, you seem to be working with an HTML *fragment*, so I'd rather in  
this case
use parseFragment, which won't generate the <html>, <head> and <body> and  
will be
serializable back to a fragment using the XHTMLSerializer (wow! using the
XHTMLSerializer with omit_optional_tags=True, weird!?)

--
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:
http://code.google.com/hosting/settings

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"html5lib-discuss" group.
 To post to this group, send email to [email protected]
 To unsubscribe from this group, send email to 
[email protected]
 For more options, visit this group at 
http://groups.google.com/group/html5lib-discuss?hl=en-GB
-~----------~----~----~----~------~----~------~--~---

Reply via email to