On Sat, May 31, 2008 at 07:02:02PM +0000, corvid wrote:
Jorge wrote:
On Sat, May 31, 2008 at 03:26:50PM +0000, corvid wrote:
Why is SELECT a block container rather than an inline container in Tags[]?
Most probably by mistake!
Given that the DTD says:
<!ELEMENT SELECT - - (OPTGROUP|OPTION)+ -- option selector --> [...] <!ELEMENT OPTGROUP - - (OPTION)+ -- option group --> [...] <!ELEMENT OPTION - O (#PCDATA) -- selectable choice -->
it looks like inline container would fit better. (and stop some segfaults Justus detected).
Well, it would still provide him with new segfaults for inline stuff like
<form> <select> <font color=red>segfault</font> </select> </form>
BTW, patch committed (now SELECT is an inline container). With regard to further segfaults, quoting myself:
SELECT can be closed in Html_stack_cleanup_at_open(). SELECT can contain OPTGROUP and OPTION.
It would be good to consider the other cases before making a patch.
After Justus sends us a set of segfault cases (with the fuzzy technique) we can try to tackle a general solution. -- Cheers Jorge.-