put braces on the same line as control statements (default), or put braces on own line (Allman / ANSI style), or just put end braces on own line, or attempt to keep them where they are.
...
...
@@ -76,100 +75,15 @@
(function(){
/* GENERATED_BUILD_OUTPUT */
varlegacy_beautify_html=
/******/(function(modules){// webpackBootstrap
/******/// The module cache
/******/varinstalledModules={};
/******/
/******/// The require function
/******/function__webpack_require__(moduleId){
/******/
/******/// Check if module is in cache
/******/if(installedModules[moduleId]){
/******/returninstalledModules[moduleId].exports;
/******/}
/******/// Create a new module (and put it into the cache)
// A head element鈥檚 end tag may be omitted if the head element is not immediately followed by a space character or a comment.
this._tag_stack.try_pop('head');
}
if(parser_token.tag_name==='body'){
// A head element’s end tag may be omitted if the head element is not immediately followed by a space character or a comment.
result=result||this._tag_stack.try_pop('head');
//} else if (parser_token.tag_name === 'body') {
// DONE: A body element鈥檚 end tag may be omitted if the body element is not immediately followed by a comment.
// DONE: A body element’s end tag may be omitted if the body element is not immediately followed by a comment.
}elseif(parser_token.tag_name==='li'){
// An li element鈥檚 end tag may be omitted if the li element is immediately followed by another li element or if there is no more content in the parent element.
this._tag_stack.try_pop('li',['ol','ul']);
// An li element’s end tag may be omitted if the li element is immediately followed by another li element or if there is no more content in the parent element.
// A dd element鈥檚 end tag may be omitted if the dd element is immediately followed by another dd element or a dt element, or if there is no more content in the parent element.
// A dt element鈥檚 end tag may be omitted if the dt element is immediately followed by another dt element or a dd element.
this._tag_stack.try_pop('dt',['dl']);
this._tag_stack.try_pop('dd',['dl']);
//} else if (p_closers.indexOf(parser_token.tag_name) !== -1) {
//TODO: THIS IS A BUG FARM. We are not putting this into 1.8.0 as it is likely to blow up.
//A p element鈥檚 end tag may be omitted if the p element is immediately followed by an address, article, aside, blockquote, details, div, dl, fieldset, figcaption, figure, footer, form, h1, h2, h3, h4, h5, h6, header, hr, main, nav, ol, p, pre, section, table, or ul element, or if there is no more content in the parent element and the parent element is an HTML element that is not an a, audio, del, ins, map, noscript, or video element, or an autonomous custom element.
//this._tag_stack.try_pop('p', ['body']);
// A dd element’s end tag may be omitted if the dd element is immediately followed by another dd element or a dt element, or if there is no more content in the parent element.
// A dt element’s end tag may be omitted if the dt element is immediately followed by another dt element or a dd element.
// IMPORTANT: this else-if works because p_closers has no overlap with any other element we look for in this method
// check for the parent element is an HTML element that is not an <a>, <audio>, <del>, <ins>, <map>, <noscript>, or <video> element, or an autonomous custom element.
// To do this right, this needs to be coded as an inclusion of the inverse of the exclusion above.
// But to start with (if we ignore "autonomous custom elements") the exclusion would be fine.
// An rt element鈥檚 end tag may be omitted if the rt element is immediately followed by an rt or rp element, or if there is no more content in the parent element.
// An rp element鈥檚 end tag may be omitted if the rp element is immediately followed by an rt or rp element, or if there is no more content in the parent element.
this._tag_stack.try_pop('rt',['ruby','rtc']);
this._tag_stack.try_pop('rp',['ruby','rtc']);
// An rt element’s end tag may be omitted if the rt element is immediately followed by an rt or rp element, or if there is no more content in the parent element.
// An rp element’s end tag may be omitted if the rp element is immediately followed by an rt or rp element, or if there is no more content in the parent element.
// An optgroup element鈥檚 end tag may be omitted if the optgroup element is immediately followed by another optgroup element, or if there is no more content in the parent element.
// An option element鈥檚 end tag may be omitted if the option element is immediately followed by another option element, or if it is immediately followed by an optgroup element, or if there is no more content in the parent element.
this._tag_stack.try_pop('optgroup',['select']);
//this._tag_stack.try_pop('option', ['select']);
// An optgroup element’s end tag may be omitted if the optgroup element is immediately followed by another optgroup element, or if there is no more content in the parent element.
// An option element’s end tag may be omitted if the option element is immediately followed by another option element, or if it is immediately followed by an optgroup element, or if there is no more content in the parent element.
//result = result || this._tag_stack.try_pop('option', ['select']);
}elseif(parser_token.tag_name==='option'){
// An option element鈥檚 end tag may be omitted if the option element is immediately followed by another option element, or if it is immediately followed by an optgroup element, or if there is no more content in the parent element.
// An option element’s end tag may be omitted if the option element is immediately followed by another option element, or if it is immediately followed by an optgroup element, or if there is no more content in the parent element.
// A thead element鈥檚 end tag may be omitted if the thead element is immediately followed by a tbody or tfoot element.
// A tbody element鈥檚 end tag may be omitted if the tbody element is immediately followed by a tbody or tfoot element, or if there is no more content in the parent element.
// A thead element’s end tag may be omitted if the thead element is immediately followed by a tbody or tfoot element.
// A tbody element’s end tag may be omitted if the tbody element is immediately followed by a tbody or tfoot element, or if there is no more content in the parent element.
// A colgroup element's end tag may be ommitted if a thead, tfoot, tbody, or tr element is started.
// A caption element's end tag may be ommitted if a colgroup, thead, tfoot, tbody, or tr element is started.
// DONE: A tfoot element鈥檚 end tag may be omitted if there is no more content in the parent element.
// DONE: A tfoot element’s end tag may be omitted if there is no more content in the parent element.
}elseif(parser_token.tag_name==='tr'){
// A tr element鈥檚 end tag may be omitted if the tr element is immediately followed by another tr element, or if there is no more content in the parent element.
// A tr element’s end tag may be omitted if the tr element is immediately followed by another tr element, or if there is no more content in the parent element.
// A colgroup element's end tag may be ommitted if a thead, tfoot, tbody, or tr element is started.
// A caption element's end tag may be ommitted if a colgroup, thead, tfoot, tbody, or tr element is started.
// A td element鈥檚 end tag may be omitted if the td element is immediately followed by a td or th element, or if there is no more content in the parent element.
// A th element鈥檚 end tag may be omitted if the th element is immediately followed by a td or th element, or if there is no more content in the parent element.
this._tag_stack.try_pop('td',['tr']);
this._tag_stack.try_pop('th',['tr']);
// A td element’s end tag may be omitted if the td element is immediately followed by a td or th element, or if there is no more content in the parent element.
// A th element’s end tag may be omitted if the th element is immediately followed by a td or th element, or if there is no more content in the parent element.
// A head element鈥檚 start tag may be omitted if the element is empty, or if the first thing inside the head element is an element.
// A tbody element鈥檚 start tag may be omitted if the first thing inside the tbody element is a tr element, and if the element is not immediately preceded by a tbody, thead, or tfoot element whose end tag has been omitted. (It can鈥檛 be omitted if the element is empty.)
// A colgroup element鈥檚 start tag may be omitted if the first thing inside the colgroup element is a col element, and if the element is not immediately preceded by another colgroup element whose end tag has been omitted. (It can鈥檛 be omitted if the element is empty.)
// A head element’s start tag may be omitted if the element is empty, or if the first thing inside the head element is an element.
// A tbody element’s start tag may be omitted if the first thing inside the tbody element is a tr element, and if the element is not immediately preceded by a tbody, thead, or tfoot element whose end tag has been omitted. (It can’t be omitted if the element is empty.)
// A colgroup element’s start tag may be omitted if the first thing inside the colgroup element is a col element, and if the element is not immediately preceded by another colgroup element whose end tag has been omitted. (It can’t be omitted if the element is empty.)