[Webkit-unassigned] [Bug 15903] When empty <input> is focused, window.getSelection().getRangeAt(0).startContainer returns an HTMLDivElement

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon Feb 2 00:55:17 PST 2009


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





------- Comment #7 from alexander.back at 1und1.de  2009-02-02 00:55 PDT -------
> Does it return the parent div, or the shadow node?  If it's the shadow node,
> this will go away when Ojan's patch to remove shadow nodes on <input> elements
> is finished.
No, the problem is (as you can see at attached test) that the result is a DIV
element with the text node inside, but the INPUT/TEXTAREA element is gone.

The result should be 

--snip--
<div>
  <input id="a" value="test input"/>
</div>
--snip--

but it returns

--snip--
<div>
    test input
</div>
--snip--

Same issue is also true for the TEXTAREA element.


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



More information about the webkit-unassigned mailing list