WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
Bug 63046
HTMLLIElement::attach() seems incorrect
https://bugs.webkit.org/show_bug.cgi?id=63046
Summary
HTMLLIElement::attach() seems incorrect
Roland Steiner
Reported
2011-06-20 23:36:36 PDT
HTMLLIElement::attach() searches its parents for the containing list. However: .) It ignores intervening "terrain", so will happily pass through whole tables, etc. .) It doesn't check the element's display type, so will accept an <ol> or <ul>, even if their display type is not [un]ordered list. And conversely, it will not consider other elements even if their display type is set to list. This seems incorrect.
Attachments
Add attachment
proposed patch, testcase, etc.
Roland Steiner
Comment 1
2011-06-20 23:37:06 PDT
i should add that the only outcome of this is incorrect styling.
Roland Steiner
Comment 2
2011-06-20 23:38:11 PDT
It will also fail if the <li> is inside shadow DOM, and the containing <ol>/<ul> is outside - i.e., parentNode() should be changed to parentOrHostNode().
Dominic Cooney
Comment 3
2011-06-21 03:22:53 PDT
(In reply to
comment #0
)
> HTMLLIElement::attach() searches its parents for the containing list. However: > > .) It ignores intervening "terrain", so will happily pass through whole tables, etc.
That seems busted.
> .) It doesn't check the element's display type, so will accept an <ol> or <ul>, even if their display type is not [un]ordered list. And conversely, it will not consider other elements even if their display type is set to list.
This seems OK. What is the problem with this behavior?
> This seems incorrect.
Roland Steiner
Comment 4
2011-06-21 15:52:58 PDT
(In reply to
comment #3
)
> (In reply to
comment #0
) > > .) It doesn't check the element's display type, so will accept an <ol> or <ul>, even if their display type is not [un]ordered list. And conversely, it will not consider other elements even if their display type is set to list. > > This seems OK. What is the problem with this behavior?
You're right, of course, esp. as there IS NO 'list' display type (just 'list-item'). @_@;;
Dominic Cooney
Comment 5
2011-11-15 16:53:08 PST
May be related to
bug 72440
.
Hajime Morrita
Comment 6
2012-07-25 19:10:50 PDT
http://trac.webkit.org/changeset/123570
fixed this.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug