This is a follow-up patch for r123577. Changed top()->hasTagName(x) with topStackItem()->hasTagName(x).
Created attachment 155707 [details] Patch
Created attachment 155709 [details] Patch
(In reply to comment #2) > Created an attachment (id=155709) [details] > Patch I should have replaced item->element()->hasTagName(x) with item->hasTagName(x) too. I will upload the updated patch.
Created attachment 155721 [details] Patch
(In reply to comment #4) > Created an attachment (id=155721) [details] > Patch This patch revealed a bug in the previous patches. Please review Bug 92838 first.
Comment on attachment 155721 [details] Patch Clearing flags on attachment: 155721 Committed r124379: <http://trac.webkit.org/changeset/124379>
All reviewed patches have been landed. Closing bug.