[Webkit-unassigned] [Bug 120226] Use ElementTraversal some more

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri Aug 23 13:43:25 PDT 2013


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





--- Comment #3 from Antti Koivisto <koivisto at iki.fi>  2013-08-23 13:42:51 PST ---
(In reply to comment #2)
> Looks to me like this is a drive-by bug fix. Was something slightly broken?

No. For Elements firstWithin and firstChild are always the same (Element's parent is always Element or the root). However it is semantically better to pair firstChild with nextSibling and firstWithin with next (it obviously matters for more specific element types).

-- 
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