Closed Bug 1363990 Opened 4 years ago Closed 2 years ago
Beautify HTML when copying inner/outer HTML from the inspector
47 bytes, text/x-phabricator-request
|Details | Review|
1. Go to google home page 2. Go to html body#gsr.hp.vasq div#viewport.ctr-p div#searchform.jhp form#tsf.tsf div.tsf-p div.jsb in the Inspector 3. Copy Outer HTML This is what you get: <div class="jsb" style="padding-top:18px"><center><input value="Google Search" aria-label="Google Search" name="btnK" jsaction="sf.chk" type="submit"><input value="I'm Feeling Lucky" aria-label="I'm Feeling Lucky" name="btnI" jsaction="sf.lck" type="submit"></center></div> This is the actual outer HTML because the site minified it. However, it's not very useful when you want to share the code or use it in a text editor. It would be great if there was an option to beautify this HTML automatically. Note that keeping the default formatting might also be needed in some situations, to check various things like if there's a space character somewhere, etc. So this has to be an option. Either a new set of context menu entries, or a pref, or a checkbox in the settings panel.
Assignee: nobody → pbrosset
Status: NEW → ASSIGNED
Pushed by firstname.lastname@example.org: https://hg.mozilla.org/integration/autoland/rev/b7080c6d1c05 New pref to beautify HTML code when copying from the inspector; r=jdescottes
You need to log in before you can comment on or make changes to this bug.