News for hackers. Stuff that matters.
Re:Ask HN: Webdevs, designers: what devtools should we (Mozi... by nailer on Tuesday March 05, 2013 @12:36PM (#5325935)
+1. I can't even add an element directly in the Chrome dev tools - you can only edit an existing elements HTML and append something after it.

My kingdom for a '+' button.

Re:Ask HN: Webdevs, designers: what devtools should we (Mozi... by mbell on Tuesday March 05, 2013 @12:44PM (#5326009)
You can, sort of.

Right click on an element and choose "edit as HTML" and you can add whatever you want, granted it offers no reasonable formatting, its just a wall of text, not even tabs / line breaks.

It is also broken in that when you do this Chrome rebuilds all the sub elements of what your editing so if there were event hooks or anything like that on the elements they will be gone.

Re:Ask HN: Webdevs, designers: what devtools should we (Mozi... by modarts on Tuesday March 05, 2013 @04:34PM (#5327510)
Not to mention dragging over text to select it usually results in the entire HTML fragment getting destroyed when Chrome decides that you're actually attempting to drag the text to move it somewhere else.
Re:Ask HN: Webdevs, designers: what devtools should we (Mozi... by paulirish on Tuesday March 19, 2013 @03:32AM (#5399456)
> It is also broken in that when you do this Chrome rebuilds all the sub elements of what your editing so if there were event hooks or anything like that on the elements they will be gone.

This may not be completely true. In Edit As HTML mode every effort is made to retain the original elements. If you move some tags to another location, the real element (and handlers) should actually be retained.

Re:Ask HN: Webdevs, designers: what devtools should we (Mozi... by ephemient on Tuesday March 05, 2013 @05:55PM (#5328005)
My workaround is to click an element, then type into console

    $0.appendChild(document.createElement('tagName'))
but yeah, a [+] button would be nice…
Re:Ask HN: Webdevs, designers: what devtools should we (Mozi... by nailer on Wednesday March 06, 2013 @05:24PM (#5334450)
It really seems like you didn't read my post before you replied to it.