[Webkit-unassigned] [Bug 27673] Inspector: Tab Through Attributes When Editing

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Sun Jul 26 07:48:04 PDT 2009


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





--- Comment #13 from Timothy Hatcher <timothy at hatcher.name>  2009-07-26 07:48:04 PDT ---
(From update of attachment 33487)

> +        var attributeElements = this.listItemElement.getElementsByClassName("webkit-html-attribute-name");
> +        for (var i = 0, len = attributeElements.length; i < len; ++i) {
> +            if (attributeElements[i].textContent === attributeName) {
> +                var event = document.createEvent("MouseEvents");
> +                event.initMouseEvent("dblclick", true, true);
> +                attributeElements[i].nextSibling.nextSibling.dispatchEvent(event); // "=" textNode, then the "webkit-html-attribute-value" node
> +                break;
> +            }
> +        }
> +    },

This should be done without a fake event by asking the ElementsTreeElement to
start editing on a specific attribute's value or name.

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