[Webkit-unassigned] [Bug 122602] contentEditable deleting lists when list items are block level

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Sun Oct 27 12:44:24 PDT 2013


https://bugs.webkit.org/show_bug.cgi?id=122602





--- Comment #7 from Santosh Mahto <santosh.ma at samsung.com>  2013-10-27 12:43:09 PST ---
(In reply to comment #6)
> (From update of attachment 215255 [details])
> View in context: https://bugs.webkit.org/attachment.cgi?id=215255&action=review
> 
> > Source/WebCore/editing/htmlediting.cpp:546
> >  bool isListItem(const Node *n)
> >  {
> > -    return n && n->renderer() && n->renderer()->isListItem();
> > +    return n && (n->hasTagName(liTag) || (n->renderer() && n->renderer()->isListItem()));
> >  }
> 
> Looks like this would make it impossible to delete a list that was built with an element other than <li> and CSS style.

I guess you are talking related to ["Generally when listitem is empty then we
 delete the listitem on hitting "Enter"] 

Yes, empty list will be deleted if either it is <li> or renderer is RenderListItem  else not.

But this behavior has been here before, before when renderer is RenderListItem then it is deleted,  only case.
May I know what other way list can be created. Proabaly we can expand more this function def.

Thanks..

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list